Changeset 43007 in vbox
- Timestamp:
- Aug 27, 2012 6:22:18 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80340
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r43006 r43007 994 994 } 995 995 996 void UIGChooserModel::sltReloadMachine(const QString &strId) 997 { 998 /* Remove all the items first: */ 999 removeMachineItems(strId, mainRoot()); 1000 1001 /* Check if such machine still present: */ 1002 CMachine machine = vboxGlobal().virtualBox().FindMachine(strId); 1003 if (machine.isNull()) 1004 return; 1005 1006 /* Add machine into the tree: */ 1007 addMachineIntoTheTree(machine); 1008 1009 /* And update model: */ 1010 updateGroupTree(); 1011 updateNavigation(); 1012 updateLayout(); 1013 1014 /* Notify listeners about selection change: */ 1015 emit sigSelectionChanged(); 1016 } 1017 996 1018 void UIGChooserModel::sltEraseLookupTimer() 997 1019 { … … 1499 1521 UIGroupDefinitionSaveThread::prepare(); 1500 1522 emit sigGroupSavingStateChanged(); 1523 connect(UIGroupDefinitionSaveThread::instance(), SIGNAL(sigReload(QString)), 1524 this, SLOT(sltReloadMachine(QString))); 1501 1525 UIGroupDefinitionSaveThread::instance()->configure(this, m_groups, groups); 1502 1526 UIGroupDefinitionSaveThread::instance()->start(); … … 2010 2034 break; 2011 2035 } 2036 emit sigReload(machine.GetId()); 2012 2037 m_condition.wakeAll(); 2013 2038 } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r43005 r43007 214 214 void sltGroupDefinitionsSaveComplete(); 215 215 void sltGroupOrdersSaveComplete(); 216 void sltReloadMachine(const QString &strId); 216 217 217 218 /* Handler: Lookup stuff: */ … … 359 360 void sigError(UIGroupsSavingError errorType, const CMachine &machine); 360 361 362 /* Notifier: */ 363 void sigReload(QString strId); 364 361 365 /* Notifier: Complete stuff: */ 362 366 void sigComplete();
Note:
See TracChangeset
for help on using the changeset viewer.