Merge branch 'Plasma/5.2'

This commit is contained in:
David Edmundson 2015-01-28 14:14:15 +01:00
commit da6d857d7a

View file

@ -53,6 +53,7 @@ PreviewItem::PreviewItem(QQuickItem *parent)
PreviewItem::~PreviewItem() PreviewItem::~PreviewItem()
{ {
m_decoration->deleteLater();
if (m_bridge){ if (m_bridge){
m_bridge->unregisterPreviewItem(this); m_bridge->unregisterPreviewItem(this);
} }
@ -74,7 +75,7 @@ void PreviewItem::createDecoration()
if (m_bridge.isNull() || m_settings.isNull() || m_decoration) { if (m_bridge.isNull() || m_settings.isNull() || m_decoration) {
return; return;
} }
m_decoration = m_bridge->createDecoration(this); m_decoration = m_bridge->createDecoration(0);
if (!m_decoration) { if (!m_decoration) {
return; return;
} }