Changeset 102722 in vbox
- Timestamp:
- Dec 28, 2023 1:03:41 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r102721 r102722 2207 2207 void UIVirtualBoxManager::sltPerformShowGlobalTool(QAction *pAction) 2208 2208 { 2209 /* Sanity checks: */ 2209 2210 AssertPtrReturnVoid(pAction); 2210 2211 AssertPtrReturnVoid(m_pWidget); 2212 2213 /* Acquire tool type: */ 2214 const UIToolType enmType = pAction->property("UIToolType").value<UIToolType>(); 2215 AssertReturnVoid(enmType != UIToolType_Invalid); 2216 2217 /* Make sure global item is selected: */ 2211 2218 m_pWidget->switchToGlobalItem(); 2212 m_pWidget->setToolsTypeGlobal(pAction->property("UIToolType").value<UIToolType>()); 2219 2220 /* Make sure corresponding manager window is closed (if any): */ 2221 sltCloseManagerWindow(enmType); 2222 2223 /* Open the tool finally: */ 2224 m_pWidget->setToolsTypeGlobal(enmType); 2213 2225 } 2214 2226 2215 2227 void UIVirtualBoxManager::sltPerformShowMachineTool(QAction *pAction) 2216 2228 { 2229 /* Sanity checks: */ 2217 2230 AssertPtrReturnVoid(pAction); 2218 2231 AssertPtrReturnVoid(m_pWidget); 2219 m_pWidget->setToolsTypeMachine(pAction->property("UIToolType").value<UIToolType>()); 2232 2233 /* Acquire tool type: */ 2234 const UIToolType enmType = pAction->property("UIToolType").value<UIToolType>(); 2235 AssertReturnVoid(enmType != UIToolType_Invalid); 2236 2237 /* Make sure corresponding manager window is closed (if any): */ 2238 sltCloseManagerWindow(enmType); 2239 2240 /* Open the tool finally: */ 2241 m_pWidget->setToolsTypeMachine(enmType); 2220 2242 } 2221 2243
Note:
See TracChangeset
for help on using the changeset viewer.