VirtualBox

Changeset 74322 in vbox for trunk/src


Ignore:
Timestamp:
Sep 17, 2018 5:53:42 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager: Restore previously chosen tool when switching between accessible and inaccessible VMs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r74320 r74322  
    254254        if (pItem && pItem->accessible())
    255255        {
    256             /* If Desktop pane is chosen currently: */
     256            /* If Desktop pane is chosen currently => open tool currently chosen in Tools-pane: */
    257257            if (m_pPaneToolsMachine->currentTool() == ToolTypeMachine_Desktop)
    258             {
    259                 /* Make sure Details or Snapshot pane is chosen if opened: */
    260                 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details))
    261                     switchToTool(ToolTypeMachine_Details);
    262                 else
    263                 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots))
    264                     switchToTool(ToolTypeMachine_Snapshots);
    265                 else
    266                 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_LogViewer))
    267                     switchToTool(ToolTypeMachine_LogViewer);
    268             }
     258                sltHandleToolsPaneIndexChange();
    269259
    270260            /* Update Details-pane (if requested): */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette