Changeset 3490 in vbox
- Timestamp:
- Jul 6, 2007 11:26:06 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22705
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r3277 r3490 286 286 287 287 bool mIsFirstTimeStarted : 1; 288 bool mIsAutoSaveMedia : 1; 288 289 289 290 #ifdef VBOX_WITH_DEBUGGER_GUI -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r3277 r3490 229 229 , console_style (0) 230 230 , mIsFirstTimeStarted (false) 231 , mIsAutoSaveMedia (true) 231 232 #ifdef VBOX_WITH_DEBUGGER_GUI 232 233 , dbg_gui (NULL) … … 680 681 static const char *GUI_AutoresizeGuest = "GUI/AutoresizeGuest"; 681 682 extern const char *GUI_FirstRun = "GUI/FirstRun"; 683 extern const char *GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime"; 682 684 683 685 /** … … 737 739 else if (!str.isEmpty()) 738 740 cmachine.SetExtraData (GUI_FirstRun, QString::null); 741 742 str = cmachine.GetExtraData (GUI_SaveMountedAtRuntime); 743 if (str == "no") 744 mIsAutoSaveMedia = false; 739 745 740 746 str = cmachine.GetExtraData (GUI_LastWindowPosition); … … 2026 2032 if (drv.isOk()) 2027 2033 { 2028 // @todo: save the settings only on power off if the appropriate flag is set 2029 // console->console().SaveSettings();2034 if (mIsAutoSaveMedia) 2035 console->console().GetMachine().SaveSettings(); 2030 2036 updateAppearanceOf (FloppyStuff); 2031 2037 } … … 2041 2047 if (drv.isOk()) 2042 2048 { 2043 // @todo: save the settings only on power off if the appropriate flag is set 2044 // console->machine().SaveSettings();2049 if (mIsAutoSaveMedia) 2050 console->console().GetMachine().SaveSettings(); 2045 2051 updateAppearanceOf (FloppyStuff); 2046 2052 } … … 2062 2068 if (drv.isOk()) 2063 2069 { 2064 // @todo: save the settings only on power off if the appropriate flag is set 2065 // console->console().SaveSettings();2070 if (mIsAutoSaveMedia) 2071 console->console().GetMachine().SaveSettings(); 2066 2072 updateAppearanceOf (DVDStuff); 2067 2073 } … … 2151 2157 if (drv.isOk()) 2152 2158 { 2153 // @todo: save the settings only on power off if the appropriate flag is set 2154 // console->machine().SaveSettings();2159 if (mIsAutoSaveMedia) 2160 console->console().GetMachine().SaveSettings(); 2155 2161 updateAppearanceOf (DVDStuff); 2156 2162 } … … 2325 2331 if (drv.isOk()) 2326 2332 { 2327 // @todo: save the settings only on power off if the appropriate flag is set 2328 // console->machine().SaveSettings();2333 if (mIsAutoSaveMedia) 2334 console->console().GetMachine().SaveSettings(); 2329 2335 updateAppearanceOf (FloppyStuff); 2330 2336 } … … 2348 2354 if (drv.isOk()) 2349 2355 { 2350 // @todo: save the settings only on power off if the appropriate flag is set 2351 // console->machine().SaveSettings();2356 if (mIsAutoSaveMedia) 2357 console->console().GetMachine().SaveSettings(); 2352 2358 updateAppearanceOf (DVDStuff); 2353 2359 } -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r3448 r3490 1245 1245 </property> 1246 1246 </widget> 1247 </vbox> 1248 </widget> 1249 <widget class="QWidget"> 1250 <property name="name"> 1251 <cstring>other</cstring> 1252 </property> 1253 <attribute name="title"> 1254 <string>&Other</string> 1255 </attribute> 1256 <vbox> 1257 <property name="name"> 1258 <cstring>unnamed</cstring> 1259 </property> 1260 <widget class="QCheckBox"> 1261 <property name="name"> 1262 <cstring>chbRememberMedia</cstring> 1263 </property> 1264 <property name="text"> 1265 <string>&Remember Media Mounted at Runtime</string> 1266 </property> 1267 <property name="accel"> 1268 <string>Alt+R</string> 1269 </property> 1270 <property name="checked"> 1271 <bool>true</bool> 1272 </property> 1273 </widget> 1274 <spacer> 1275 <property name="name"> 1276 <cstring>spacer30</cstring> 1277 </property> 1278 <property name="orientation"> 1279 <enum>Vertical</enum> 1280 </property> 1281 <property name="sizeType"> 1282 <enum>Expanding</enum> 1283 </property> 1284 <property name="sizeHint"> 1285 <size> 1286 <width>20</width> 1287 <height>151</height> 1288 </size> 1289 </property> 1290 </spacer> 1247 1291 </vbox> 1248 1292 </widget> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r3349 r3490 31 31 32 32 33 extern const char *GUI_SaveMountedAtRuntime; 33 34 extern const char *GUI_FirstRun; 34 35 … … 1521 1522 /* Shared clipboard mode */ 1522 1523 cbSharedClipboard->setCurrentItem (machine.GetClipboardMode()); 1524 1525 /* other features */ 1526 QString saveRtimeImages = cmachine.GetExtraData (GUI_SaveMountedAtRuntime); 1527 chbRememberMedia->setChecked (saveRtimeImages != "no"); 1523 1528 1524 1529 /* hard disk images */ … … 1861 1866 cmachine.SetClipboardMode ((CEnums::ClipboardMode)cbSharedClipboard->currentItem()); 1862 1867 1868 /* other features */ 1869 cmachine.SetExtraData (GUI_SaveMountedAtRuntime, 1870 chbRememberMedia->isChecked() ? "yes" : "no"); 1871 1863 1872 /* hard disk images */ 1864 1873 {
Note:
See TracChangeset
for help on using the changeset viewer.