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;