VirtualBox

Changeset 35710 in vbox


Ignore:
Timestamp:
Jan 25, 2011 1:14:13 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69646
Message:

FE/Qt4: fix the update of a snapshot name or description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp

    r29354 r35710  
    106106    AssertReturn (!mSnapshot.isNull(), (void) 0);
    107107
    108     mSnapshot.SetName (mLeName->text());
    109     mSnapshot.SetDescription (mTeDescription->toPlainText());
     108    /* We need a session when we manipulate the snapshot data of a machine. */
     109    CSession session = vboxGlobal().openSession(mSnapshot.GetMachine().GetId(), true);
     110    if (session.isNull())
     111        return;
     112
     113    mSnapshot.SetName(mLeName->text());
     114    mSnapshot.SetDescription(mTeDescription->toPlainText());
     115
     116    /* Close the session again. */
     117    session.UnlockMachine();
    110118}
    111119
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