Commit 23fe4092 authored by El Mehdi Fekari's avatar El Mehdi Fekari Committed by Mehdi Fekari

Qnx: Set missing parents for QMessageBox dialogs

Change-Id: Id279e8d7cf4ddc2a25aeab509ac48af53bdbc7a0
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 859c1166
......@@ -51,6 +51,8 @@
#include <debugger/debuggeritemmanager.h>
#include <debugger/debuggerkitinformation.h>
#include <coreplugin/icore.h>
#include <QFileInfo>
#include <QDir>
#include <QMessageBox>
......@@ -316,7 +318,7 @@ bool BlackBerryConfiguration::activate()
if (!m_simulatorDebugger.isEmpty())
errorMessage += QLatin1Char('\n') + tr("- No GDB debugger found for BB10 Simulator.");
QMessageBox::warning(0, tr("Cannot Set up BB10 Configuration"),
QMessageBox::warning(Core::ICore::mainWindow(), tr("Cannot Set up BB10 Configuration"),
errorMessage, QMessageBox::Ok);
return false;
}
......
......@@ -255,7 +255,7 @@ bool BlackBerryConfigurationManager::addConfiguration(BlackBerryConfiguration *c
if (c->ndkPath() == config->ndkPath()
&& c->targetName() == config->targetName()) {
if (!config->isAutoDetected())
QMessageBox::warning(0, tr("NDK Already Known"),
QMessageBox::warning(Core::ICore::mainWindow(), tr("NDK Already Known"),
tr("The NDK already has a configuration."), QMessageBox::Ok);
return false;
}
......
......@@ -117,7 +117,7 @@ void BlackBerryNDKSettingsWidget::launchBlackBerrySetupWizard() const
const bool alreadyConfigured = blackBerryUtils.hasRegisteredKeys() && blackBerryUtils.hasDefaultCertificate();
if (alreadyConfigured) {
QMessageBox::information(0, tr("Qt Creator"),
QMessageBox::information(Core::ICore::mainWindow(), tr("Qt Creator"),
tr("It appears that your BlackBerry environment has already been configured."));
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment