Changeset 51541 in vbox
- Timestamp:
- Jun 5, 2014 7:14:45 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94188
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51532 r51541 427 427 } 428 428 429 QString UIExtraDataManager::selectorWindowLastItemChosen() const 430 { 431 return extraDataString(GUI_LastItemSelected); 432 } 433 434 void UIExtraDataManager::setSelectorWindowLastItemChosen(const QString &strItemID) 435 { 436 setExtraDataString(GUI_LastItemSelected, strItemID); 437 } 438 429 439 QMap<DetailsElementType, bool> UIExtraDataManager::selectorWindowDetailsElements() 430 440 { -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51532 r51541 151 151 /** Defines whether selector-window status-bar @a fVisible. */ 152 152 void setSelectorWindowStatusBarVisible(bool fVisible); 153 154 /** Returns last item chosen in selector-window chooser-pane. */ 155 QString selectorWindowLastItemChosen() const; 156 /** Returns last item chosen in selector-window chooser-pane as @a strItemID. */ 157 void setSelectorWindowLastItemChosen(const QString &strItemID); 153 158 154 159 /** Returns selector-window details-pane elements. */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r51187 r51541 1231 1231 { 1232 1232 /* Load last selected item (choose first if unable to load): */ 1233 setCurrentItem( vboxGlobal().virtualBox().GetExtraData(GUI_LastItemSelected));1233 setCurrentItem(gEDataManager->selectorWindowLastItemChosen()); 1234 1234 if (!currentItem() && !navigationList().isEmpty()) 1235 1235 setCurrentItem(navigationList().first()); … … 1239 1239 { 1240 1240 /* Save last selected item: */ 1241 vboxGlobal().virtualBox().SetExtraData(GUI_LastItemSelected, 1242 currentItem() ? currentItem()->definition() : QString()); 1241 gEDataManager->setSelectorWindowLastItemChosen(currentItem() ? currentItem()->definition() : QString()); 1243 1242 } 1244 1243
Note:
See TracChangeset
for help on using the changeset viewer.