Changeset 16493 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 3, 2009 2:53:54 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42394
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r16472 r16493 1349 1349 1350 1350 /* make the Discard checkbox invisible if there are no snapshots */ 1351 dlg.mCbDiscardCurState->setVisible ((cmachine.GetSnapshotCount() > 0)); 1351 bool isDiscardVisible = cmachine.GetSnapshotCount() > 0; 1352 dlg.mCbDiscardCurState->setVisible (isDiscardVisible); 1352 1353 1353 1354 if (machine_state != KMachineState_Stuck) … … 1364 1365 dlg.mRbSave->setFocus(); 1365 1366 } 1366 else if ( wasDiscardCurState|| !isACPIEnabled)1367 else if ((wasDiscardCurState && isDiscardVisible) || !isACPIEnabled) 1367 1368 { 1368 1369 dlg.mRbShutdown->setEnabled (isACPIEnabled);
Note:
See TracChangeset
for help on using the changeset viewer.