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.
This commit is contained in:
Andrius Štikonas 2018-09-01 22:34:46 +01:00
parent c33067b3f5
commit 78e7c7d52a
2 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
*************************************************************************/
#if !defined(APPLYPROGRESSDIALOG_H)
#ifndef APPLYPROGRESSDIALOG_H
#define APPLYPROGRESSDIALOG_H
#include <QDialog>

View File

@ -166,6 +166,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
KXmlGuiWindow::closeEvent(event);
ExternalCommand::stopHelper();
delete m_ApplyProgressDialog;
}
void MainWindow::changeEvent(QEvent* event)