From 96edc153a8afe69f7b572b0de736a433fa217324 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 11 Aug 2011 01:29:10 +0200 Subject: [PATCH] don't autodelete the part, thereby avoiding crashes --- kpart/plasmakpart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpart/plasmakpart.cpp b/kpart/plasmakpart.cpp index 85ba434b3..9259a20b7 100644 --- a/kpart/plasmakpart.cpp +++ b/kpart/plasmakpart.cpp @@ -47,7 +47,7 @@ K_EXPORT_PLUGIN(plasmaKPartFactory("plasma-kpart","plasma-kpart") ) PlasmaKPart::PlasmaKPart(QWidget *parentWidget, QObject *parent, const QVariantList &args) : KParts::ReadOnlyPart(parent), m_corona(0), - m_view(new PlasmaKPartView(0, 1, parentWidget)) + m_view(new PlasmaKPartView(0, 1)) { setComponentData(plasmaKPartFactory::componentData()); @@ -67,6 +67,7 @@ PlasmaKPart::PlasmaKPart(QWidget *parentWidget, QObject *parent, const QVariantL } } + setAutoDeletePart(false); QTimer::singleShot(0, this, SLOT(initCorona())); }