From 3676aaf5be9311437f612398a09a12adabdc1613 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 29 Apr 2014 13:54:23 +0200 Subject: [PATCH] CDB: Remove duplicated message box generation. Change-Id: Ib4413a97b63a17155645dafb681a0384950270c6 Reviewed-by: Friedemann Kleint --- src/plugins/debugger/cdb/cdbengine.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index ec4e2ff302e..14cc8c91451 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -199,16 +199,6 @@ static inline bool isCreatorConsole(const DebuggerStartParameters &sp) && (sp.startMode == StartInternal || sp.startMode == StartExternal); } -static QMessageBox * -nonModalMessageBox(QMessageBox::Icon icon, const QString &title, const QString &text) -{ - QMessageBox *mb = new QMessageBox(icon, title, text, QMessageBox::Ok, - Core::ICore::mainWindow()); - mb->setAttribute(Qt::WA_DeleteOnClose); - mb->show(); - return mb; -} - // Base data structure for command queue entries with callback struct CdbCommandBase { @@ -565,7 +555,7 @@ void CdbEngine::consoleStubError(const QString &msg) STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyEngineIll") notifyEngineIll(); } - nonModalMessageBox(QMessageBox::Critical, tr("Debugger Error"), msg); + showMessageBox(QMessageBox::Critical, tr("Debugger Error"), msg); } void CdbEngine::consoleStubProcessStarted()