From 0017ed24d6cd4a37a1215d645231133f1360103c Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 16 Oct 2013 17:11:39 +0200 Subject: [PATCH] Debugger: Keep more secondary dialogs on top of the main window Change-Id: I1e4283a5727db976d999d4cf4c7e444de8592566 Reviewed-by: Friedemann Kleint --- src/plugins/debugger/gdb/startgdbserverdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/startgdbserverdialog.cpp b/src/plugins/debugger/gdb/startgdbserverdialog.cpp index dc6f4fe2d66..5623bdf4c75 100644 --- a/src/plugins/debugger/gdb/startgdbserverdialog.cpp +++ b/src/plugins/debugger/gdb/startgdbserverdialog.cpp @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -189,7 +190,7 @@ void GdbServerStarter::attach(int port) localExecutable = candidate; } if (localExecutable.isEmpty()) { - QMessageBox::warning(DebuggerPlugin::mainWindow(), tr("Warning"), + QMessageBox::warning(ICore::mainWindow(), tr("Warning"), tr("Cannot find local executable for remote process \"%1\".") .arg(d->process.exe)); return; @@ -197,7 +198,7 @@ void GdbServerStarter::attach(int port) QList abis = Abi::abisOfBinary(Utils::FileName::fromString(localExecutable)); if (abis.isEmpty()) { - QMessageBox::warning(DebuggerPlugin::mainWindow(), tr("Warning"), + QMessageBox::warning(ICore::mainWindow(), tr("Warning"), tr("Cannot find ABI for remote process \"%1\".") .arg(d->process.exe)); return;