aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-05-19 10:09:59 +0200
committerhjk <[email protected]>2023-05-22 06:40:13 +0000
commitd740a355bb1954714234edd13194ce158540bcc0 (patch)
tree2e35415d9a5e64ae1d20c805bec3b781ec0348fd /src/plugins/debugger/debuggerplugin.cpp
parentc0ebf227a73d3047b495e72e4c64453273ce21de (diff)
Utils: Rework CheckableMessageBox
Remove function overloads, thes are hard to read, to use and to extend. I'd even argue this should be a plain default ctor and a few setters + exec(), pretty much like Process::start() nowadays. Move "decider" magic into a structure that can be filled ad-hoc outside checkablemessagebox.cpp paving the ground for: ...removing aspect dependency from CheckableMessageBox, Instead, add a convenience function to BoolAspect. Arguably, the latter is not needed and could be done on the user side. Use pointers instead of mutable references for in-out parameter. Makes the "specialness" visible on the user side. Pass ICore::settings() centrally as done elsewhere to reduce line noise on the user side. Change-Id: Ibb366353d1ea35401723fd05ce05672617a0a8fd Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 8b14ff0e236..87ae84dd8d6 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -2243,8 +2243,7 @@ bool wantRunTool(ToolMode toolMode, const QString &toolName)
if (Utils::CheckableMessageBox::question(ICore::dialogParent(),
title,
message,
- ICore::settings(),
- "AnalyzerCorrectModeWarning")
+ QString("AnalyzerCorrectModeWarning"))
!= QMessageBox::Yes)
return false;
}