VirtualBox

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


Ignore:
Timestamp:
Mar 14, 2009 3:54:42 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: fixed error reporting in some special cases

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

Legend:

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

    r17784 r17867  
    340340
    341341    void cannotExportAppliance (CAppliance *aAppliance, QWidget *aParent = NULL) const;
     342    void cannotExportAppliance (const CMachine &aMachine, CAppliance *aAppliance, QWidget *aParent = NULL) const;
    342343    void cannotExportAppliance (const CProgress &aProgress, CAppliance *aAppliance, QWidget *aParent = NULL) const;
    343344
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxExportApplianceWzd.cpp

    r17737 r17867  
    237237                fResult = m.isOk();
    238238                if (!fResult)
    239                     break;
     239                {
     240                    vboxProblem().cannotExportAppliance (m, &appliance, this);
     241                    return false;
     242                }
    240243            }
    241244            else
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r17831 r17867  
    20932093}
    20942094
     2095void VBoxProblemReporter::cannotExportAppliance (const CMachine &aMachine, CAppliance *aAppliance, QWidget *aParent /* = NULL */) const
     2096{
     2097    if (aAppliance->isNull() ||
     2098        aMachine.isNull())
     2099    {
     2100        message (aParent ? aParent : mainWindowShown(),
     2101                 Error,
     2102                 tr ("Failed to create an appliance."));
     2103    }else
     2104    {
     2105        message (aParent ? aParent : mainWindowShown(),
     2106                 Error,
     2107                 tr ("Failed to prepare the export of the appliance <b>%1</b>.").arg (aAppliance->GetPath()),
     2108                 formatErrorInfo (aMachine));
     2109    }
     2110}
     2111
    20952112void VBoxProblemReporter::cannotExportAppliance (const CProgress &aProgress, CAppliance* aAppliance, QWidget *aParent /* = NULL */) const
    20962113{
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