From b78d7f31a78b569ed3e098f2427f53747ea4a1d6 Mon Sep 17 00:00:00 2001 From: Boudewijn Rempt Date: Tue, 17 Dec 2013 11:01:18 +0100 Subject: [PATCH] Load the tags assigned to dummy resources. This makes empty tags available again. --- libs/widgets/KoResourceTagStore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/widgets/KoResourceTagStore.cpp b/libs/widgets/KoResourceTagStore.cpp index 8b146486b6..3b55eaf9af 100644 --- a/libs/widgets/KoResourceTagStore.cpp +++ b/libs/widgets/KoResourceTagStore.cpp @@ -62,6 +62,7 @@ void KoResourceTagStore::addTag(KoResource* resource, const QString& tag) void KoResourceTagStore::addTag(const QString& fileName, const QString& tag) { + qDebug() << fileName << tag; if (m_tagRepo.contains(fileName, tag)) { return; } @@ -265,7 +266,7 @@ void KoResourceTagStore::readXMLFile(bool serverIdentity) if (resourceEl.tagName() == "resource") { QString resourceName = resourceEl.attribute("identifier"); resourceName.replace(QString("~"), QDir::homePath()); - if (isServerResource(resourceName) || !serverIdentity) { + if (resourceName == "dummy" || isServerResource(resourceName) || !serverIdentity) { QDomNodeList tagNodesList = resourceNodesList.at(i).childNodes(); for (int j = 0; j < tagNodesList.count() ; j++) { QDomElement tagEl = tagNodesList.at(j).toElement(); -- GitLab