[DrKonqi] Reliably quit when closing report assistant

The finished signal is not emitted when the dialog is just closed and neither is the reject signal.
Since the dialog is DeleteOnClose we can just connect to QObject::destroyed

Differential Revision: https://phabricator.kde.org/D1044
wilder-5.14
Kai Uwe Broulik 10 years ago
parent c39589716a
commit b7f7b4e189
  1. 3
      drkonqi/drkonqidialog.cpp

@ -264,7 +264,8 @@ void DrKonqiDialog::startBugReportAssistant()
#if HAVE_XMLRPCCLIENT
ReportAssistantDialog * bugReportAssistant = new ReportAssistantDialog();
bugReportAssistant->show();
connect(bugReportAssistant, SIGNAL(finished()), SLOT([] () { close(); }));
connect(bugReportAssistant, &QObject::destroyed, this, &DrKonqiDialog::reject);
hide();
#endif
}

Loading…
Cancel
Save