From aed29ad8c3eb3e6c8bee19d6cd8dbccc46ac4f09 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 22 Jul 2022 13:27:19 +0200 Subject: Core: Remove #include from icore.h Adapt users; also use dialogParent() instead of mainWindow() were appropriate. Change-Id: Ib60b118f05c986a70657446c5b2937074243bb5c Reviewed-by: hjk Reviewed-by: Qt CI Bot Reviewed-by: Alessandro Portale --- src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp') diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index 165daf8bb3..57952a6ea8 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -412,14 +412,14 @@ bool CMakeBuildSystem::mustApplyConfigurationChangesArguments(const BuildDirPara if (parameters.configurationChangesArguments.isEmpty()) return false; - auto answer = QMessageBox::question(Core::ICore::mainWindow(), - tr("Apply configuration changes?"), - "

" + tr("Run CMake with configuration changes?") - + "

"
-                                            + parameters.configurationChangesArguments.join("\n")
-                                            + "
", - QMessageBox::Apply | QMessageBox::Discard, - QMessageBox::Apply); + int answer = QMessageBox::question(Core::ICore::dialogParent(), + tr("Apply configuration changes?"), + "

" + tr("Run CMake with configuration changes?") + + "

"
+                                       + parameters.configurationChangesArguments.join("\n")
+                                       + "
", + QMessageBox::Apply | QMessageBox::Discard, + QMessageBox::Apply); return answer == QMessageBox::Apply; } -- cgit v1.2.1