VirtualBox

Ignore:
Timestamp:
Feb 3, 2009 2:53:54 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42394
Message:

FE/Qt4: 3225: Disable ACPI actions if ACPI is not supported atm: snapshots presence got into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r16472 r16493  
    13491349
    13501350            /* 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);
    13521353
    13531354            if (machine_state != KMachineState_Stuck)
     
    13641365                    dlg.mRbSave->setFocus();
    13651366                }
    1366                 else if (wasDiscardCurState || !isACPIEnabled)
     1367                else if ((wasDiscardCurState && isDiscardVisible) || !isACPIEnabled)
    13671368                {
    13681369                    dlg.mRbShutdown->setEnabled (isACPIEnabled);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette