Silence message box occurring after canceling custom executable dialog.

(See also fe2dd584fc ).

Change-Id: Iffb8f95084955a9ca1cc4b7b0adb558f41811cb4
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Friedemann Kleint
2013-11-07 09:53:49 +01:00
parent 0071c80a93
commit f788b7c9fd

View File

@@ -1677,12 +1677,10 @@ void ProjectExplorerPlugin::executeRunConfiguration(RunConfiguration *runConfigu
void ProjectExplorerPlugin::showRunErrorMessage(const QString &errorMessage)
{
if (errorMessage.isNull()) {
// a error occured, but message was not set
QMessageBox::critical(ICore::mainWindow(), tr("Unknown error"), errorMessage);
} else {
QMessageBox::critical(ICore::mainWindow(), tr("Could Not Run"), errorMessage);
}
// Empty, non-null means 'canceled' (custom executable dialog for libraries), whereas
// empty, null means an error occurred, but message was not set
if (!errorMessage.isEmpty() || errorMessage.isNull())
QMessageBox::critical(ICore::mainWindow(), errorMessage.isNull() ? tr("Unknown error") : tr("Could Not Run"), errorMessage);
}
void ProjectExplorerPlugin::startRunControl(RunControl *runControl, RunMode runMode)