forked from qt-creator/qt-creator
Debugger: Keep more secondary dialogs on top of the main window
Change-Id: I1e4283a5727db976d999d4cf4c7e444de8592566 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -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)
|
|||||||
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)
|
|||||||
|
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user