diff options
author | Kai Koehne <kai.koehne@digia.com> | 2013-09-13 16:12:04 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-09-13 16:24:30 +0200 |
commit | 3bdc50d1b1d24a87a6825f270e2d3cb9df5e2089 (patch) | |
tree | 13043697992869e3f5d7d62951a8d75bd68fc6fa /src/plugins/debugger/debuggerrunner.cpp | |
parent | f29ce3d9b96f859c148b4c0c35ebefb9bab27364 (diff) | |
download | qt-creator-3bdc50d1b1d24a87a6825f270e2d3cb9df5e2089.tar.gz |
Fix break point warning dialog
QMessageBox apparently only saves the state in the actual
QMessageBox instance ... anyhow, it's the only place in
QtCreator where we use QMessageBox, which makes it look
somewhat alien. Instead, use CheckableMessageBox and
extend it for an information dialog.
Task-number: QTCREATORBUG-9876
Change-Id: I8014e972943dd4a336952325ebb9f6cbc5dd0902
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index fff5ba4ab6..eeba0d25c1 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -54,11 +54,11 @@ #include <projectexplorer/target.h> #include <projectexplorer/taskhub.h> +#include <utils/checkablemessagebox.h> #include <utils/qtcassert.h> #include <utils/qtcprocess.h> #include <coreplugin/icore.h> -#include <QErrorMessage> #include <QTcpServer> using namespace Debugger::Internal; @@ -209,9 +209,14 @@ void DebuggerRunControl::start() debuggerCore()->showMessage(warningMessage, LogWarning); - QErrorMessage *msgBox = new QErrorMessage(debuggerCore()->mainWindow()); - msgBox->setAttribute(Qt::WA_DeleteOnClose); - msgBox->showMessage(warningMessage); + static bool checked = true; + if (!checked) + break; + CheckableMessageBox::information(debuggerCore()->mainWindow(), + tr("Debugger"), + warningMessage, + tr("&Show this message again."), + &checked, QDialogButtonBox::Ok); break; } } |