VirtualBox

Changeset 49687 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 27, 2013 6:00:49 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90957
Message:

Main/Snapshot: block deleting of current snapshot if it has child snapshots, as this would lead to VM config corruption, plus safety belts in the GUI and settings reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r48311 r49687  
    21692169                        mUserData->s.strName.c_str(),
    21702170                        childrenCount);
     2171    if (pSnapshot == mData->mCurrentSnapshot && childrenCount >= 1)
     2172        return setError(VBOX_E_INVALID_OBJECT_STATE,
     2173                        tr("Snapshot '%s' of the machine '%s' cannot be deleted, because it is the current snapshot and has one child snapshot"),
     2174                        pSnapshot->getName().c_str(),
     2175                        mUserData->s.strName.c_str());
    21712176
    21722177    /* If the snapshot being deleted is the current one, ensure current
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