From 32e839c2a23627d12926c69bd2f682ddb1d412b4 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 13 Aug 2009 17:38:36 +0200 Subject: [PATCH] debugger: make the message box informing of received signals non-blocking. --- src/plugins/debugger/gdb/gdbengine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 3a023e97ccd..9edbc52edcb 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1196,7 +1196,10 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data) "<tr><td>Signal meaning : </td><td>%2</td></tr></table>") .arg(name.isEmpty() ? tr(" <Unknown> ") : _(name)) .arg(meaning.isEmpty() ? tr(" <Unknown> ") : _(meaning)); - QMessageBox::information(q->mainWindow(), tr("Signal received"), msg); + QMessageBox *mb = new QMessageBox(QMessageBox::Information, + tr("Signal received"), msg); + mb->setAttribute(Qt::WA_DeleteOnClose); + mb->show(); } if (reason.isEmpty()) -- GitLab