VirtualBox

Changeset 17831 in vbox


Ignore:
Timestamp:
Mar 13, 2009 2:48:52 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OVF: add warning on early errors

File:
1 edited

Legend:

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

    r17784 r17831  
    20482048        COMResult res (*aAppliance);
    20492049
     2050        /* Add the warnings in the case of an early error */
     2051        QVector<QString> w = aAppliance->GetWarnings();
     2052        QString wstr;
     2053        foreach (const QString &str, w)
     2054            wstr += QString ("<br />Warning: %1").arg (str);
     2055        if (!wstr.isEmpty())
     2056            wstr = "<br />" + wstr;
     2057
    20502058        message (aParent ? aParent : mainWindowShown(),
    20512059                 Error,
    20522060                 tr ("Failed to open/interpret appliance <b>%1</b>.").arg (aAppliance->GetPath()),
     2061                 wstr +
    20532062                 formatErrorInfo (res));
    20542063    }
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