Debugger: Add an option to not show the unsupported bp warning

Done-by: Elias Steurer
Task-number: QTCREATORBUG-31455
Change-Id: I9736a2a0a1b4c3a38516b3397068d2ba2b3f455d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2024-08-27 08:13:09 +02:00
parent 640c132c31
commit 83ebffb321
5 changed files with 26 additions and 6 deletions

View File

@@ -617,12 +617,20 @@ void DebuggerRunTool::start()
showMessage(warningMessage, LogWarning);
static bool doNotShowAgain = false;
CheckableMessageBox::information(Core::ICore::dialogParent(),
Tr::tr("Debugger"),
warningMessage,
&doNotShowAgain,
QMessageBox::Ok);
if (settings().showUnsupportedBreakpointWarning()) {
bool doNotAskAgain = false;
CheckableDecider decider(&doNotAskAgain);
CheckableMessageBox::information(
Core::ICore::dialogParent(),
Tr::tr("Debugger"),
warningMessage,
decider,
QMessageBox::Ok);
if (doNotAskAgain) {
settings().showUnsupportedBreakpointWarning.setValue(false);
settings().showUnsupportedBreakpointWarning.writeSettings();
}
}
}
}