- Timestamp:
- Jan 11, 2019 12:51:50 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r76606 r76771 56 56 UIToolType UIToolPaneGlobal::currentTool() const 57 57 { 58 return m_pLayout->currentWidget()->property("ToolType").value<UIToolType>(); 58 return m_pLayout && m_pLayout->currentWidget() 59 ? m_pLayout->currentWidget()->property("ToolType").value<UIToolType>() 60 : UIToolType_Invalid; 59 61 } 60 62 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r76606 r76771 59 59 UIToolType UIToolPaneMachine::currentTool() const 60 60 { 61 return m_pLayout->currentWidget()->property("ToolType").value<UIToolType>(); 61 return m_pLayout && m_pLayout->currentWidget() 62 ? m_pLayout->currentWidget()->property("ToolType").value<UIToolType>() 63 : UIToolType_Invalid; 62 64 } 63 65
Note:
See TracChangeset
for help on using the changeset viewer.