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:
@@ -616,14 +616,12 @@ void DebuggerRunTool::start()
|
||||
|
||||
showMessage(warningMessage, LogWarning);
|
||||
|
||||
static bool checked = true;
|
||||
if (checked)
|
||||
CheckableMessageBox::information(Core::ICore::dialogParent(),
|
||||
Tr::tr("Debugger"),
|
||||
warningMessage,
|
||||
Tr::tr("&Show this message again."),
|
||||
&checked,
|
||||
QDialogButtonBox::Ok);
|
||||
static bool doNotShowAgain = false;
|
||||
CheckableMessageBox::information(Core::ICore::dialogParent(),
|
||||
Tr::tr("Debugger"),
|
||||
warningMessage,
|
||||
doNotShowAgain,
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user