VirtualBox

Changeset 102721 in vbox


Ignore:
Timestamp:
Dec 28, 2023 12:57:37 PM (9 months ago)
Author:
vboxsync
Message:

FE/Qt: UIVirtualBoxManager: A bit of cleanup for Open Manager Window stuff; Make sure corresponding machine tool is closed same way as global tool for the case if tool being opened as separate manager window.

File:
1 edited

Legend:

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

    r102575 r102721  
    990990void UIVirtualBoxManager::sltOpenManagerWindow(UIToolType enmType /* = UIToolType_Invalid */)
    991991{
    992     /* Determine actual tool type if possible: */
     992    /* Determine actual tool type on the basis of sender action if possible: */
    993993    if (enmType == UIToolType_Invalid)
    994994    {
     
    10011001        }
    10021002    }
    1003 
    10041003    /* Make sure type is valid: */
    10051004    AssertReturnVoid(enmType != UIToolType_Invalid);
     
    10101009        m_pWidget->setToolsTypeGlobal(UIToolType_Welcome);
    10111010        m_pWidget->closeGlobalTool(enmType);
     1011    }
     1012    if (m_pWidget->isMachineToolOpened(enmType))
     1013    {
     1014        m_pWidget->setToolsTypeMachine(UIToolType_Details);
     1015        m_pWidget->closeMachineTool(enmType);
    10121016    }
    10131017
     
    10461050    }
    10471051
    1048     /* Show instance: */
    1049     m_managers.value(enmType)->show();
    1050     m_managers.value(enmType)->setWindowState(m_managers.value(enmType)->windowState() & ~Qt::WindowMinimized);
    1051     m_managers.value(enmType)->activateWindow();
     1052    /* Expose instance: */
     1053    UIDesktopWidgetWatchdog::restoreWidget(m_managers.value(enmType));
    10521054}
    10531055
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