Changeset 16372 in vbox
- Timestamp:
- Jan 29, 2009 3:25:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r16365 r16372 1348 1348 QStringList lastAction = 1349 1349 cmachine.GetExtraData (VBoxDefs::GUI_LastCloseAction).split (','); 1350 bool wasDiscardCurState = lastAction.count() > 1 && 1351 lastAction [1] == kDiscardCurState; 1350 1352 AssertWrapperOk (cmachine); 1351 1353 if (lastAction [0] == kSave) … … 1354 1356 dlg.mRbSave->setFocus(); 1355 1357 } 1356 else if ( (lastAction [0] == kPowerOff) &&!isACPIEnabled)1358 else if (wasDiscardCurState || !isACPIEnabled) 1357 1359 { 1358 dlg.mRbShutdown->setEnabled ( false);1360 dlg.mRbShutdown->setEnabled (isACPIEnabled); 1359 1361 dlg.mRbPowerOff->setChecked (true); 1360 1362 dlg.mRbPowerOff->setFocus(); … … 1365 1367 dlg.mRbShutdown->setFocus(); 1366 1368 } 1367 dlg.mCbDiscardCurState->setChecked ( 1368 lastAction.count() > 1 && lastAction [1] == kDiscardCurState); 1369 dlg.mCbDiscardCurState->setChecked (wasDiscardCurState); 1369 1370 } 1370 1371 else
Note:
See TracChangeset
for help on using the changeset viewer.