VirtualBox

Changeset 4165 in vbox for trunk


Ignore:
Timestamp:
Aug 16, 2007 8:30:32 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23655
Message:

2240: Change snapshot folder error is not reported:

Added the error handling for the snapshot's folder unable to be changed in case of there are already snapshots created.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r4090 r4165  
    120120    void cannotDiscardSavedState (const CConsole &console);
    121121
     122    void cannotSetSnapshotFolder (const CMachine &aMachine);
    122123    void cannotDiscardSnapshot (const CConsole &console, const CSnapshot &snapshot);
    123124    void cannotDiscardSnapshot (const CProgress &progress, const CSnapshot &snapshot);
     
    129130    void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name);
    130131
    131     void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight,
    132                                   ULONG aBpp, ULONG aVRam);
     132    void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, ULONG aBpp);
    133133
    134134    bool confirmMachineDeletion (const CMachine &machine);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r4146 r4165  
    18151815    {
    18161816        vboxProblem().cannotEnterSeamlessMode (screen.width(),
    1817             screen.height(), QColor::numBitPlanes(), vRamSize);
     1817            screen.height(), QColor::numBitPlanes());
    18181818        vmSeamlessAction->setOn (false);
    18191819        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r4146 r4165  
    753753}
    754754
     755void VBoxProblemReporter::cannotSetSnapshotFolder (const CMachine &aMachine)
     756{
     757    message (
     758        mainWindowShown(),
     759        Error,
     760        tr ("Failed to change the snapshot folder path."),
     761        formatErrorInfo (aMachine));
     762}
     763
    755764void VBoxProblemReporter::cannotDiscardSnapshot (const CConsole &console,
    756765                                                 const CSnapshot &snapshot)
     
    843852void VBoxProblemReporter::cannotEnterSeamlessMode (ULONG aWidth,
    844853                                                   ULONG aHeight,
    845                                                    ULONG aBpp, ULONG aVRam)
     854                                                   ULONG aBpp)
    846855{
    847856    message (&vboxGlobal().consoleWnd(), Error,
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r4071 r4165  
    18501850    /* Saved state folder */
    18511851    if (leSnapshotFolder->isModified())
     1852    {
    18521853        cmachine.SetSnapshotFolder (leSnapshotFolder->text());
     1854        if (!cmachine.isOk())
     1855            vboxProblem().cannotSetSnapshotFolder (cmachine);
     1856    }
    18531857
    18541858    /* Description */
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