From b7f7b4e18947b9abe528ab6424fd6bd1ade590d8 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 21 Mar 2016 12:38:31 +0100 Subject: [PATCH] [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 --- drkonqi/drkonqidialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drkonqi/drkonqidialog.cpp b/drkonqi/drkonqidialog.cpp index ff43ac774..a1c62d482 100644 --- a/drkonqi/drkonqidialog.cpp +++ b/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 }