don't delete the kns3 dialog on application shutdown

BUG:288153
This commit is contained in:
Aaron Seigo 2011-12-03 21:22:45 +01:00
parent b7e335265f
commit 97e4bd53d3

View File

@ -22,6 +22,7 @@
#include <math.h> #include <math.h>
#include <float.h> // FLT_MAX #include <float.h> // FLT_MAX
#include <QCoreApplication>
#include <QFileInfo> #include <QFileInfo>
#include <kconfiggroup.h> #include <kconfiggroup.h>
@ -82,7 +83,10 @@ PlasmoidPackage::PlasmoidPackage(QObject *parent)
PlasmoidPackage::~PlasmoidPackage() PlasmoidPackage::~PlasmoidPackage()
{ {
#ifndef PLASMA_NO_KNEWSTUFF #ifndef PLASMA_NO_KNEWSTUFF
delete m_knsDialog.data(); if (!QCoreApplication::closingDown()) {
// let it "leak" on application close as this causes crashes otherwise, BUG 288153
delete m_knsDialog.data();
}
#endif #endif
} }