VirtualBox

Changeset 76772 in vbox for trunk


Ignore:
Timestamp:
Jan 11, 2019 12:54:15 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager UI: A bit of protection for r124351.

File:
1 edited

Legend:

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

    r76606 r76772  
    105105UIToolType UIVirtualBoxManagerWidget::toolsType() const
    106106{
    107     return m_pPaneTools->toolsType();
     107    return m_pPaneTools ? m_pPaneTools->toolsType() : UIToolType_Invalid;
    108108}
    109109
    110110UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const
    111111{
    112     return m_pPaneToolsGlobal->currentTool();
     112    return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->currentTool() : UIToolType_Invalid;
    113113}
    114114
    115115UIToolType UIVirtualBoxManagerWidget::currentMachineTool() const
    116116{
    117     return m_pPaneToolsMachine->currentTool();
     117    return m_pPaneToolsMachine ? m_pPaneToolsMachine->currentTool() : UIToolType_Invalid;
    118118}
    119119
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