VirtualBox

Changeset 63751 in vbox


Ignore:
Timestamp:
Sep 7, 2016 2:30:08 PM (8 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: Include snapshot (short) name when restoring (current) snapshot and also do the same when deleting a snapshot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r63300 r63751  
    497497
    498498            ComPtr<ISnapshot> pSnapshot;
    499             ComPtr<IProgress> pProgress;
    500             Bstr bstrSnapGuid;
    501499
    502500            if (fRestoreCurrent)
     
    516514            }
    517515
     516            Bstr bstrSnapGuid;
    518517            CHECK_ERROR_BREAK(pSnapshot, COMGETTER(Id)(bstrSnapGuid.asOutParam()));
     518
     519            Bstr bstrSnapName;
     520            CHECK_ERROR_BREAK(pSnapshot, COMGETTER(Name)(bstrSnapName.asOutParam()));
     521
     522            ComPtr<IProgress> pProgress;
     523
     524            RTPrintf("%s snapshot '%ls' (%ls)\n",
     525                     fDelete ? "Deleting" : "Restoring", bstrSnapName.raw(), bstrSnapGuid.raw());
    519526
    520527            if (fDelete)
     
    526533            {
    527534                // restore or restore current
    528                 RTPrintf("Restoring snapshot %ls\n", bstrSnapGuid.raw());
    529535                CHECK_ERROR_BREAK(sessionMachine, RestoreSnapshot(pSnapshot, pProgress.asOutParam()));
    530536            }
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