diff --git a/ui/attachprocess.cpp b/ui/attachprocess.cpp index 511486a8..21bacdb7 100644 --- a/ui/attachprocess.cpp +++ b/ui/attachprocess.cpp @@ -352,7 +352,6 @@ AttachProcessDialog::AttachProcessDialog(QWidget* parent, DbgRefexec() != QDialog::Accepted) + AttachProcessDialog dialog(this, m_controller); + if (dialog.exec() != QDialog::Accepted) return; - uint32_t pid = dialog->GetSelectedPid(); + uint32_t pid = dialog.GetSelectedPid(); if (pid == 0) return;