Changeset 63926 in vbox
- Timestamp:
- Sep 21, 2016 3:03:24 PM (8 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
r63567 r63926 242 242 m_pPaneDetails->setItems(currentItems()); 243 243 244 /* If current ly selected VM item isaccessible: */244 /* If current item exists & accessible: */ 245 245 if (pItem && pItem->accessible()) 246 246 { … … 253 253 if (fRefreshSnapshots) 254 254 { 255 m_pPaneDesktop->updateSnapshots(pItem, pItem->machine());255 updateSnapshots(pItem, pItem->machine()); 256 256 /* Always hide snapshots-view if 257 257 * single group or more than one machine is selected: */ 258 258 if (currentItems().size() > 1 || m_pPaneChooser->isSingleGroupSelected()) 259 m_pPaneDesktop->lockSnapshots(); 260 } 261 } 262 /* If currently selected VM item is NOT accessible: */ 259 lockSnapshots(); 260 } 261 } 263 262 else 264 263 { … … 294 293 295 294 /* Empty and disable other tabs: */ 296 m_pPaneDesktop->updateSnapshots(0, CMachine());295 updateSnapshots(0, CMachine()); 297 296 } 298 297 } … … 417 416 /* If signal is for the current item: */ 418 417 if (pItem->id() == strID) 419 m_pPaneDesktop->updateSnapshots(pItem, pItem->machine());418 updateSnapshots(pItem, pItem->machine()); 420 419 } 421 420 … … 1054 1053 } 1055 1054 1055 void UISelectorWindow::updateSnapshots(UIVMItem *pItem, const CMachine &comMachine) 1056 { 1057 /* Redirect call to Desktop-pane: */ 1058 m_pPaneDesktop->updateSnapshots(pItem, comMachine); 1059 } 1060 1061 void UISelectorWindow::lockSnapshots() 1062 { 1063 /* Redirect call to Desktop-pane: */ 1064 m_pPaneDesktop->lockSnapshots(); 1065 } 1066 1056 1067 void UISelectorWindow::retranslateUi() 1057 1068 { … … 1068 1079 setWindowTitle(strTitle); 1069 1080 1070 /* Ensure the details and screenshot vieware updated: */1081 /* Make sure details and snapshot panes are updated: */ 1071 1082 sltHandleChooserPaneIndexChange(); 1072 1083 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r63291 r63926 27 27 28 28 /* Forward declarations: */ 29 class CMachine; 29 30 class UIAction; 30 31 class UIActionPool; … … 183 184 QList<UIVMItem*> currentItems() const; 184 185 186 /** Updates snapshot related controls for passed @a pItem and @a comMachine. */ 187 void updateSnapshots(UIVMItem *pItem, const CMachine &comMachine); 188 /** Locks snapshot related controls. */ 189 void lockSnapshots(); 190 185 191 /** @name Event handling stuff. 186 192 * @{ */
Note:
See TracChangeset
for help on using the changeset viewer.