VirtualBox

Changeset 29421 in vbox


Ignore:
Timestamp:
May 12, 2010 1:34:58 PM (15 years ago)
Author:
vboxsync
Message:

Main/Snapshot: some mix between fix and workaround to sensure that the VM config file is saved after a snapshot is deleted

File:
1 edited

Legend:

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

    r29204 r29421  
    26752675            {
    26762676                AutoWriteLock machineLock(this COMMA_LOCKVAL_SRC_POS);
    2677                 saveSettings(&fNeedsSaveSettings, SaveS_InformCallbacksAnyway);
     2677                /// @todo r=klaus the SaveS_Force is right now a workaround,
     2678                // as something in saveSettings fails to detect deleted
     2679                // snapshots in some cases (2 child snapshots -> 1 child
     2680                // snapshot). Should be fixed, but don't drop SaveS_Force
     2681                // then, as it avoids a rather costly config equality check
     2682                // when we know that it is changed.
     2683                saveSettings(&fNeedsSaveSettings, SaveS_Force | SaveS_InformCallbacksAnyway);
    26782684            }
    26792685
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