VirtualBox

Changeset 60591 in vbox


Ignore:
Timestamp:
Apr 20, 2016 10:44:56 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106730
Message:

FE/Qt: ​​​​​​​bugref:6719: Runtime UI: Make sure automatic PowerOff action do not restore current snapshot automatically unless user choose to do that in CloseVM dialog before.

File:
1 edited

Legend:

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

    r60362 r60591  
    15981598
    15991599    LogRel(("GUI: User request to power VM off.\n"));
    1600     powerOff(machine().GetSnapshotCount() > 0);
     1600    MachineCloseAction enmLastCloseAction = gEDataManager->lastMachineCloseAction(vboxGlobal().managedVMUuid());
     1601    powerOff(machine().GetSnapshotCount() > 0 && enmLastCloseAction == MachineCloseAction_PowerOff_RestoringSnapshot);
    16011602}
    16021603
Note: See TracChangeset for help on using the changeset viewer.

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