don't autodelete the part, thereby avoiding crashes
This commit is contained in:
parent
9fb8a3518a
commit
96edc153a8
@ -47,7 +47,7 @@ K_EXPORT_PLUGIN(plasmaKPartFactory("plasma-kpart","plasma-kpart") )
|
|||||||
PlasmaKPart::PlasmaKPart(QWidget *parentWidget, QObject *parent, const QVariantList &args)
|
PlasmaKPart::PlasmaKPart(QWidget *parentWidget, QObject *parent, const QVariantList &args)
|
||||||
: KParts::ReadOnlyPart(parent),
|
: KParts::ReadOnlyPart(parent),
|
||||||
m_corona(0),
|
m_corona(0),
|
||||||
m_view(new PlasmaKPartView(0, 1, parentWidget))
|
m_view(new PlasmaKPartView(0, 1))
|
||||||
{
|
{
|
||||||
setComponentData(plasmaKPartFactory::componentData());
|
setComponentData(plasmaKPartFactory::componentData());
|
||||||
|
|
||||||
@ -67,6 +67,7 @@ PlasmaKPart::PlasmaKPart(QWidget *parentWidget, QObject *parent, const QVariantL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setAutoDeletePart(false);
|
||||||
QTimer::singleShot(0, this, SLOT(initCorona()));
|
QTimer::singleShot(0, this, SLOT(initCorona()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user