summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerrunner.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-09-13 16:12:04 +0200
committerhjk <hjk121@nokiamail.com>2013-09-13 16:24:30 +0200
commit3bdc50d1b1d24a87a6825f270e2d3cb9df5e2089 (patch)
tree13043697992869e3f5d7d62951a8d75bd68fc6fa /src/plugins/debugger/debuggerrunner.cpp
parentf29ce3d9b96f859c148b4c0c35ebefb9bab27364 (diff)
downloadqt-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.cpp13
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;
}
}