forked from qt-creator/qt-creator
Utils: Unify CheckableMessageBox and make it look more native
Change-Id: I5690c16f38cfd2058e01441283bec28d44cadf75 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -2240,10 +2240,13 @@ bool wantRunTool(ToolMode toolMode, const QString &toolName)
|
||||
"or otherwise insufficient output.</p><p>"
|
||||
"Do you want to continue and run the tool in %2 mode?</p></body></html>")
|
||||
.arg(toolName).arg(currentMode).arg(toolModeString);
|
||||
if (Utils::CheckableMessageBox::doNotAskAgainQuestion(ICore::dialogParent(),
|
||||
title, message, ICore::settings(), "AnalyzerCorrectModeWarning")
|
||||
!= QDialogButtonBox::Yes)
|
||||
return false;
|
||||
if (Utils::CheckableMessageBox::question(ICore::dialogParent(),
|
||||
title,
|
||||
message,
|
||||
ICore::settings(),
|
||||
"AnalyzerCorrectModeWarning")
|
||||
!= QMessageBox::Yes)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user