aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/appoutputpane.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2024-02-02 11:16:21 +0100
committerhjk <hjk@qt.io>2024-04-12 11:48:29 +0000
commitabd538507ac943e478fec1e23549aa5e986dacb5 (patch)
tree9ce6df46f2fb18933ca1582f6fb774449eaafad2 /src/plugins/projectexplorer/appoutputpane.cpp
parent18a867aa237778a7e73b7fa8f67d67c82c987e8e (diff)
ProjectExplorer: Make settings access more direct
A step towards aspectification. Change-Id: Iabf5e56e993449dc482d1d2ab6eeb2885243ab3e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index 94e2694acc..742e6df5e4 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -661,10 +661,10 @@ void AppOutputPane::closeTab(int tabIndex, CloseTabMode closeTabMode)
bool AppOutputPane::optionallyPromptToStop(RunControl *runControl)
{
- ProjectExplorerSettings settings = ProjectExplorerPlugin::projectExplorerSettings();
- if (!runControl->promptToStop(&settings.prompToStopRunControl))
+ bool promptToStop = projectExplorerSettings().prompToStopRunControl;
+ if (!runControl->promptToStop(&promptToStop))
return false;
- ProjectExplorerPlugin::setProjectExplorerSettings(settings);
+ setPromptToStopSettings(promptToStop);
return true;
}