From 78e7c7d52a9877b56f520a460be9fae3ed2159ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 1 Sep 2018 22:34:46 +0100 Subject: [PATCH] Fix crash on exit. If we do not delete ApplyProgressDialog, then it later emits finished which in turn attempts to scanDevices even though kpmcore helper is already stopped and QCA private key is deleted. --- src/gui/applyprogressdialog.h | 3 +-- src/gui/mainwindow.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/applyprogressdialog.h b/src/gui/applyprogressdialog.h index 0277faa..b838bb0 100644 --- a/src/gui/applyprogressdialog.h +++ b/src/gui/applyprogressdialog.h @@ -16,8 +16,7 @@ * along with this program. If not, see .* *************************************************************************/ -#if !defined(APPLYPROGRESSDIALOG_H) - +#ifndef APPLYPROGRESSDIALOG_H #define APPLYPROGRESSDIALOG_H #include diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 404150e..be7bbcf 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -166,6 +166,7 @@ void MainWindow::closeEvent(QCloseEvent* event) KXmlGuiWindow::closeEvent(event); ExternalCommand::stopHelper(); + delete m_ApplyProgressDialog; } void MainWindow::changeEvent(QEvent* event)