VirtualBox

Changeset 1276 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 6, 2007 5:31:46 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19228
Message:

Main: Fixed: A saved state file for a newly created machine was created in the {uuid} dir instead of 'Snapshots'.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r1071 r1276  
    16041604    {
    16051605        return setError (E_FAIL,
    1606             tr ("Cannot save the machine state as the machine is not running or paused.  (Machine state: %d)"), mMachineState);
     1606            tr ("Cannot save the execution state as the machine "
     1607                "is not running (machine state: %d)"), mMachineState);
    16071608    }
    16081609
  • trunk/src/VBox/Main/MachineImpl.cpp

    r1168 r1276  
    482482            unconst (mData->mUuid).create();
    483483
    484             /* initialize the default snapshots folder */
    485             rc = COMSETTER(SnapshotFolder) (NULL);
    486             AssertComRC (rc);
    487 
    488484            /* memorize the provided new machine's name */
    489485            mUserData->mName = aName;
    490486            mUserData->mNameSync = aNameSync;
     487
     488            /* initialize the default snapshots folder
     489             * (note: depends on the name value set above!) */
     490            rc = COMSETTER(SnapshotFolder) (NULL);
     491            AssertComRC (rc);
    491492        }
    492493
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