VirtualBox

Changeset 52032 in vbox for trunk/src


Ignore:
Timestamp:
Jul 15, 2014 9:21:41 AM (11 years ago)
Author:
vboxsync
Message:

Console: Make it possible to disable saving state using new extradata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r52019 r52032  
    61526152            Global::stringifyMachineState(mMachineState));
    61536153    }
     6154
     6155    Bstr strDisableSaveState;
     6156    mMachine->GetExtraData(Bstr("VBoxInternal2/DisableSaveState").raw(), strDisableSaveState.asOutParam());
     6157    if (strDisableSaveState == "1")
     6158        return setError(VBOX_E_VM_ERROR,
     6159                        tr("Saving the execution state is disabled for this VM"));
    61546160
    61556161    if (aReason != Reason_Unspecified)
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