VirtualBox

Changeset 27611 in vbox


Ignore:
Timestamp:
Mar 22, 2010 7:43:22 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59157
Message:

FE/Qt4: 4675: Allow predefined shutdown dialog action - condition fix for power-off action availability.

File:
1 edited

Legend:

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

    r27609 r27611  
    158158            bool fIsStateSavingAllowed = !restictedActionsList.contains("SaveState", Qt::CaseInsensitive);
    159159            bool fIsACPIShutdownAllowed = !restictedActionsList.contains("Shutdown", Qt::CaseInsensitive);
    160             bool fIsPowerOffAllowed = (uisession()->machineState() == KMachineState_Stuck) ||
    161                                       (!restictedActionsList.contains("PowerOff", Qt::CaseInsensitive));
     160            bool fIsPowerOffAllowed = !restictedActionsList.contains("PowerOff", Qt::CaseInsensitive);
    162161            bool fIsPowerOffAndRestoreAllowed = fIsPowerOffAllowed && restictedActionsList.contains("Restore", Qt::CaseInsensitive);
    163162
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