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:
parent
c33067b3f5
commit
78e7c7d52a
|
@ -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>
|
||||
|
|
|
@ -166,6 +166,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
|||
|
||||
KXmlGuiWindow::closeEvent(event);
|
||||
ExternalCommand::stopHelper();
|
||||
delete m_ApplyProgressDialog;
|
||||
}
|
||||
|
||||
void MainWindow::changeEvent(QEvent* event)
|
||||
|
|
Loading…
Reference in New Issue