File 0003-Emit-usedPrefixChanged-when-prefix-is-empty.patch of Package plasma-framework

From 4ccdedf5a742b0feb157f5d1d51e4d350cc93aec Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Wed, 7 Jun 2017 18:03:31 +0100
Subject: [PATCH 3/3] Emit usedPrefixChanged when prefix is empty

As found by Fabian Vogt
---
 src/declarativeimports/core/framesvgitem.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/declarativeimports/core/framesvgitem.cpp b/src/declarativeimports/core/framesvgitem.cpp
index d53476946..9080072dd 100644
--- a/src/declarativeimports/core/framesvgitem.cpp
+++ b/src/declarativeimports/core/framesvgitem.cpp
@@ -570,6 +570,9 @@ void FrameSvgItem::applyPrefixes()
 
     if (m_prefixes.isEmpty()) {
         m_frameSvg->setElementPrefix(QString());
+        if (oldPrefix != m_frameSvg->prefix()) {
+            emit usedPrefixChanged();
+        }
         return;
     }
 
-- 
2.13.0

openSUSE Build Service is sponsored by