Changeset 51209 in vbox
- Timestamp:
- May 7, 2014 4:32:00 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93600
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51208 r51209 241 241 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 242 242 243 bool UIExtraDataManager::isFirstRun(const QString &strId) const 244 { 245 return isFeatureAllowed(GUI_FirstRun, strId); 246 } 247 248 void UIExtraDataManager::setFirstRun(bool fIsFirstRun, const QString &strId) 249 { 250 setExtraDataString(GUI_FirstRun, toFeatureAllowed(fIsFirstRun), strId); 251 } 252 243 253 bool UIExtraDataManager::shouldWeShowMachine(const QString &strID) const 244 254 { -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51208 r51209 114 114 bool shouldWeAllowApplicationUpdate() const; 115 115 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 116 117 /** Returns whether this machine started for the first time. */ 118 bool isFirstRun(const QString &strId) const; 119 /** Defines whether this machine started for the first time. */ 120 void setFirstRun(bool fIsFirstRun, const QString &strId); 116 121 117 122 /** Returns whether we should show machine. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r51158 r51209 1140 1140 1141 1141 /* Is there should be First RUN Wizard? */ 1142 strSettings = machine.GetExtraData(GUI_FirstRun); 1143 if (strSettings == "yes") 1144 m_fIsFirstTimeStarted = true; 1142 m_fIsFirstTimeStarted = gEDataManager->isFirstRun(vboxGlobal().managedVMUuid()); 1145 1143 1146 1144 /* Ignore mediums mounted at runtime? */ … … 1188 1186 /* Save extra-data settings: */ 1189 1187 { 1190 /* Disable First RUN Wizard for the since now: */1191 machine.SetExtraData(GUI_FirstRun, QString());1188 /* Disable First RUN Wizard: */ 1189 gEDataManager->setFirstRun(false, vboxGlobal().managedVMUuid()); 1192 1190 1193 1191 /* Remember if guest should autoresize: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r51054 r51209 829 829 } 830 830 831 /* Clear the "GUI_FirstRun" extra data key in case if 832 * the boot order or disk configuration were changed: */ 831 /* Disable First RUN Wizard: */ 833 832 if (m_fResetFirstRunFlag) 834 m_machine.SetExtraData(GUI_FirstRun, QString::null);833 gEDataManager->setFirstRun(false, m_strMachineId); 835 834 836 835 /* Save settings finally: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r49091 r51209 75 75 } 76 76 77 /* The FirstRun wizard is to be shown only when we don't attach any virtual hard drive or attach a new (empty) one. 78 * Selecting an existing virtual hard drive will cancel the FirstRun wizard. */ 77 /* The First RUN Wizard is to be shown: 78 * 1. if we don't attach any virtual hard-drive 79 * 2. or attach a new (empty) one. 80 * Usually we are assigning extra-data values through UIExtraDataManager, 81 * but in that special case VM was not registered yet, so UIExtraDataManager is unaware of it. */ 79 82 if (field("virtualDiskId").toString().isNull() || !field("virtualDisk").value<CMedium>().isNull()) 80 83 m_machine.SetExtraData(GUI_FirstRun, "yes");
Note:
See TracChangeset
for help on using the changeset viewer.