Skip to content
Snippets Groups Projects
Commit 0017ed24 authored by hjk's avatar hjk Committed by Friedemann Kleint
Browse files

Debugger: Keep more secondary dialogs on top of the main window


Change-Id: I1e4283a5727db976d999d4cf4c7e444de8592566
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent c9cf3d14
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <debugger/debuggerruncontrolfactory.h> #include <debugger/debuggerruncontrolfactory.h>
#include <debugger/debuggerstartparameters.h> #include <debugger/debuggerstartparameters.h>
#include <coreplugin/icore.h>
#include <projectexplorer/kitchooser.h> #include <projectexplorer/kitchooser.h>
#include <projectexplorer/devicesupport/deviceprocesslist.h> #include <projectexplorer/devicesupport/deviceprocesslist.h>
#include <projectexplorer/devicesupport/deviceprocessesdialog.h> #include <projectexplorer/devicesupport/deviceprocessesdialog.h>
...@@ -189,7 +190,7 @@ void GdbServerStarter::attach(int port) ...@@ -189,7 +190,7 @@ void GdbServerStarter::attach(int port)
localExecutable = candidate; localExecutable = candidate;
} }
if (localExecutable.isEmpty()) { if (localExecutable.isEmpty()) {
QMessageBox::warning(DebuggerPlugin::mainWindow(), tr("Warning"), QMessageBox::warning(ICore::mainWindow(), tr("Warning"),
tr("Cannot find local executable for remote process \"%1\".") tr("Cannot find local executable for remote process \"%1\".")
.arg(d->process.exe)); .arg(d->process.exe));
return; return;
...@@ -197,7 +198,7 @@ void GdbServerStarter::attach(int port) ...@@ -197,7 +198,7 @@ void GdbServerStarter::attach(int port)
QList<Abi> abis = Abi::abisOfBinary(Utils::FileName::fromString(localExecutable)); QList<Abi> abis = Abi::abisOfBinary(Utils::FileName::fromString(localExecutable));
if (abis.isEmpty()) { if (abis.isEmpty()) {
QMessageBox::warning(DebuggerPlugin::mainWindow(), tr("Warning"), QMessageBox::warning(ICore::mainWindow(), tr("Warning"),
tr("Cannot find ABI for remote process \"%1\".") tr("Cannot find ABI for remote process \"%1\".")
.arg(d->process.exe)); .arg(d->process.exe));
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment