diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index a752a04de3d..6af357ca805 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -204,7 +204,7 @@ void CodepasterPlugin::fetch() } m_fetcher = new CustomFetcher(serverUrl()); - QDialog dialog; + QDialog dialog(ICore::instance()->mainWindow()); Ui_PasteSelectDialog ui; ui.setupUi(&dialog); diff --git a/src/plugins/projectexplorer/applicationrunconfiguration.cpp b/src/plugins/projectexplorer/applicationrunconfiguration.cpp index 755fa998fb8..fa2e806c6b9 100644 --- a/src/plugins/projectexplorer/applicationrunconfiguration.cpp +++ b/src/plugins/projectexplorer/applicationrunconfiguration.cpp @@ -89,7 +89,7 @@ QString ApplicationRunConfigurationRunner::displayName() const return tr("Run"); } -RunControl* ApplicationRunConfigurationRunner::run(QSharedPointer runConfiguration, const QString &mode) +RunControl *ApplicationRunConfigurationRunner::run(QSharedPointer runConfiguration, const QString &mode) { QSharedPointer rc = qSharedPointerCast(runConfiguration); Q_ASSERT(rc); diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index e25718033c7..1953e963550 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -31,12 +31,14 @@ #include "environment.h" #include "project.h" +#include #include #include #include #include #include +#include #include #include #include @@ -190,7 +192,7 @@ QString CustomExecutableRunConfiguration::executable() const if (!QFileInfo(exec).exists()) { // Oh the executable doesn't exists, ask the user. QWidget *confWidget = const_cast(this)->configurationWidget(); - QDialog dialog; + QDialog dialog(Core::ICore::instance()->mainWindow()); dialog.setLayout(new QVBoxLayout()); dialog.layout()->addWidget(new QLabel(tr("Could not find the executable, please specify one."))); dialog.layout()->addWidget(confWidget);