Merge branch 'Plasma/5.2'
This commit is contained in:
commit
da6d857d7a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue