- Timestamp:
- Aug 3, 2017 11:59:34 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r68278 r68282 147 147 void UISelectorWindow::sltHandlePolishEvent() 148 148 { 149 // WORKAROUND: 150 // By some reason some of X11 DEs unable to update() 151 // tab-bars on startup. Let's try to _create_ them instead. 152 /* Make sure 'Details' and 'Snapshots' Machine tools ares opened at startup for now: */ 153 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->trigger(); 154 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->trigger(); 149 /* Get current item: */ 150 UIVMItem *pItem = currentItem(); 151 152 /* Make sure there is accessible VM item chosen: */ 153 if (pItem && pItem->accessible()) 154 { 155 // WORKAROUND: 156 // By some reason some of X11 DEs unable to update() 157 // tab-bars on startup. Let's try to _create_ them instead. 158 /* Make sure 'Details' and 'Snapshots' Machine tools ares opened at startup for now: */ 159 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->trigger(); 160 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->trigger(); 161 } 155 162 } 156 163 … … 255 262 256 263 void UISelectorWindow::sltHandleChooserPaneIndexChange(bool fUpdateDetails /* = true */, 257 bool fUpdate Tools /* = true */)264 bool fUpdateSnapshots /* = true */) 258 265 { 259 266 /* Get current item: */ … … 264 271 /* Update action appearance: */ 265 272 updateActionsAppearance(); 266 267 /* Update Details-pane: */268 if ( fUpdateDetails269 && m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details))270 m_pPaneToolsMachine->setItems(currentItems());271 273 272 274 /* If current item exists & accessible: */ … … 284 286 } 285 287 286 /* Refresh Machine Tools-pane if requested: */ 287 if ( fUpdateTools 288 /* Update Details-pane (if requested): */ 289 if ( fUpdateDetails 290 && m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details)) 291 m_pPaneToolsMachine->setItems(currentItems()); 292 /* Update Snapshots-pane (if requested): */ 293 if ( fUpdateSnapshots 288 294 && m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots)) 289 295 m_pPaneToolsMachine->setMachine(pItem->machine()); … … 321 327 } 322 328 323 /* Refresh Tools-pane in any case: */ 329 /* Update Details-pane (in any case): */ 330 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details)) 331 m_pPaneToolsMachine->setItems(currentItems()); 332 /* Update Snapshots-pane (in any case): */ 324 333 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots)) 325 334 m_pPaneToolsMachine->setMachine(CMachine()); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r68278 r68282 91 91 92 92 /** Handles signal about Chooser-pane index change. 93 * @param fUpdateDetails Brings whether details should be updated.94 * @param fUpdate ToolsBrings whether tools should be updated. */93 * @param fUpdateDetails Brings whether details should be updated. 94 * @param fUpdateSnapshots Brings whether tools should be updated. */ 95 95 void sltHandleChooserPaneIndexChange(bool fUpdateDetails = true, 96 bool fUpdate Tools = true);96 bool fUpdateSnapshots = true); 97 97 98 98 /** Handles signal about medium-enumeration finished. */
Note:
See TracChangeset
for help on using the changeset viewer.