VirtualBox

Changeset 37570 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 21, 2011 10:31:26 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72412
Message:

FE/Qt4: correct error reporting on machine deletion

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

Legend:

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

    r37470 r37570  
    915915}
    916916
     917void VBoxProblemReporter::cannotDeleteMachine(const CMachine &machine, const CProgress &progress)
     918{
     919    message(mainWindowShown(),
     920            Error,
     921            tr("Failed to remove the virtual machine <b>%1</b>.").arg(machine.GetName()),
     922            formatErrorInfo(progress.GetErrorInfo()));
     923}
     924
    917925void VBoxProblemReporter::cannotDiscardSavedState (const CConsole &console)
    918926{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.h

    r37470 r37570  
    218218    void cannotStopMachine (const CProgress &progress);
    219219    void cannotDeleteMachine (const CMachine &machine);
     220    void cannotDeleteMachine(const CMachine &machine, const CProgress &progress);
    220221    void cannotDiscardSavedState (const CConsole &console);
    221222
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp

    r37468 r37570  
    768768                    vboxProblem().showModalProgressDialog(progress, item->name(), ":/progress_delete_90px.png", 0, true);
    769769                    if (progress.GetResultCode() != 0)
    770                         vboxProblem().cannotDeleteMachine(machine);
     770                        vboxProblem().cannotDeleteMachine(machine, progress);
    771771                }
    772772            }
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