forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user