don't delete the kns3 dialog on application shutdown
BUG:288153
This commit is contained in:
parent
b7e335265f
commit
97e4bd53d3
@ -22,6 +22,7 @@
|
||||
#include <math.h>
|
||||
#include <float.h> // FLT_MAX
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QFileInfo>
|
||||
|
||||
#include <kconfiggroup.h>
|
||||
@ -82,7 +83,10 @@ PlasmoidPackage::PlasmoidPackage(QObject *parent)
|
||||
PlasmoidPackage::~PlasmoidPackage()
|
||||
{
|
||||
#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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user