VirtualBox

Changeset 74247 in vbox for trunk/src


Ignore:
Timestamp:
Sep 13, 2018 3:49:23 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: Properly load last selected tool group.

File:
1 edited

Legend:

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

    r74138 r74247  
    508508
    509509                        /* Create sliding-widget: */
    510                         m_pSlidingAnimation = new UISlidingAnimation(Qt::Vertical, true);
     510                        // Reverse initial animation direction if group or machine selected!
     511                        const bool fReverse = !m_pPaneChooser->isGlobalItemSelected();
     512                        m_pSlidingAnimation = new UISlidingAnimation(Qt::Vertical, fReverse);
    511513                        if (m_pSlidingAnimation)
    512514                        {
     
    520522                        }
    521523
    522                         /* Make Machine Tools pane active initially: */
    523                         m_pStackedWidget->setCurrentWidget(m_pPaneToolsMachine);
     524                        /* Choose which pane should be active initially: */
     525                        if (m_pPaneChooser->isGlobalItemSelected())
     526                            m_pStackedWidget->setCurrentWidget(m_pPaneToolsGlobal);
     527                        else
     528                            m_pStackedWidget->setCurrentWidget(m_pPaneToolsMachine);
    524529
    525530                        /* Add into layout: */
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