diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index ec1700bcdba1454414a5aff6e1152075cb05d297..dda14a769fbdcacfd427ff0bf959f802739ecedf 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1670,21 +1670,12 @@ void DebuggerPluginPrivate::attachToRunningApplication() attachToProcess(false); } -class DebuggerProcessesDialog : public ProjectExplorer::DeviceProcessesDialog { -public: - DebuggerProcessesDialog(DebuggerKitChooser::Mode m, QWidget *parent) : - ProjectExplorer::DeviceProcessesDialog(new DebuggerKitChooser(m), parent) - { - addAcceptButton(DeviceProcessesDialog::tr("&Attach to Process")); - } -}; - void DebuggerPluginPrivate::attachToProcess(bool startServerOnly) { - const DebuggerKitChooser::Mode mode = startServerOnly ? DebuggerKitChooser::RemoteDebugging : DebuggerKitChooser::LocalDebugging; - DeviceProcessesDialog *dlg = new DebuggerProcessesDialog(mode, mainWindow()); + DebuggerKitChooser *kitChooser = new DebuggerKitChooser(mode); + DeviceProcessesDialog *dlg = new DeviceProcessesDialog(kitChooser, mainWindow()); dlg->addAcceptButton(DeviceProcessesDialog::tr("&Attach to Process")); dlg->showAllDevices(); if (dlg->exec() == QDialog::Rejected) { @@ -1693,7 +1684,6 @@ void DebuggerPluginPrivate::attachToProcess(bool startServerOnly) } dlg->setAttribute(Qt::WA_DeleteOnClose); - KitChooser *kitChooser = dlg->kitChooser(); Kit *kit = kitChooser->currentKit(); QTC_ASSERT(kit, return); IDevice::ConstPtr device = DeviceKitInformation::device(kit); diff --git a/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.h b/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.h index 6687a82f1f691f6c7b768c29e38638d8acc99a35..c40de7311763a6d12fd99312613a275a4a31abb7 100644 --- a/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.h +++ b/src/plugins/projectexplorer/devicesupport/deviceprocessesdialog.h @@ -59,8 +59,6 @@ public: DeviceProcess currentProcess() const; KitChooser *kitChooser() const; void logMessage(const QString &line); - -protected: DeviceProcessesDialog(KitChooser *chooser, QWidget *parent); private: