summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-03-27 18:20:00 +0100
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-03-27 18:20:00 +0100
commitf013c41d05c82e853a3418d4e980329e1f883b7a (patch)
tree87318eea4f6f06556673c64a64044d49a97a28e6 /src/plugins/debugger/qml
parent187bb36945a653cdf9738a6563475c87b9db911d (diff)
parent0afa004c0b929ee722037bee26c1c45910fda8c5 (diff)
downloadqt-creator-f013c41d05c82e853a3418d4e980329e1f883b7a.tar.gz
Merge remote-tracking branch 'origin/3.1'
Conflicts: src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp Change-Id: Icce6e8dd9b3afd9a0fe836e9babfb7a17cee9c4d
Diffstat (limited to 'src/plugins/debugger/qml')
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index d542bf04d7..17d51e5817 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -457,16 +457,22 @@ void QmlEngine::connectionStartupFailed()
void QmlEngine::appStartupFailed(const QString &errorMessage)
{
- QMessageBox *infoBox = new QMessageBox(Core::ICore::mainWindow());
- infoBox->setIcon(QMessageBox::Critical);
- infoBox->setWindowTitle(tr("Qt Creator"));
- infoBox->setText(tr("Could not connect to the in-process QML debugger."
- "\n%1").arg(errorMessage));
- infoBox->setStandardButtons(QMessageBox::Ok | QMessageBox::Help);
- infoBox->setDefaultButton(QMessageBox::Ok);
- connect(infoBox, SIGNAL(finished(int)),
- this, SLOT(errorMessageBoxFinished(int)));
- infoBox->show();
+ QString error = tr("Could not connect to the in-process QML debugger."
+ "\n%1").arg(errorMessage);
+
+ if (isMasterEngine()) {
+ QMessageBox *infoBox = new QMessageBox(Core::ICore::mainWindow());
+ infoBox->setIcon(QMessageBox::Critical);
+ infoBox->setWindowTitle(tr("Qt Creator"));
+ infoBox->setText(error);
+ infoBox->setStandardButtons(QMessageBox::Ok | QMessageBox::Help);
+ infoBox->setDefaultButton(QMessageBox::Ok);
+ connect(infoBox, SIGNAL(finished(int)),
+ this, SLOT(errorMessageBoxFinished(int)));
+ infoBox->show();
+ } else {
+ showMessage(error, StatusBar);
+ }
notifyEngineRunFailed();
}