Commit 2f8e6616 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix build

parent 87a5c71b
...@@ -435,13 +435,13 @@ bool KisResourceCacheDb::addTag(KisResourceStorageSP storage, const QString &res ...@@ -435,13 +435,13 @@ bool KisResourceCacheDb::addTag(KisResourceStorageSP storage, const QString &res
bool KisResourceCacheDb::addTags(KisResourceStorageSP storage, QString resourceType) bool KisResourceCacheDb::addTags(KisResourceStorageSP storage, QString resourceType)
{ {
QSharedPointer<KisResourceStorage::TagIterator> iter = storage->tags(resourceType); // QSharedPointer<KisResourceStorage::TagIterator> iter = storage->tags(resourceType);
while(iter->hasNext()) { // while(iter->hasNext()) {
iter->next(); // iter->next();
if (!addTag(storage, resourceType, iter->url(), iter->name(), iter->comment())) { // if (!addTag(storage, resourceType, iter->url(), iter->name(), iter->comment())) {
qWarning() << "Could not add resource" << res->filename() << "to the database"; // qWarning() << "Could not add resource" << res->filename() << "to the database";
} // }
} // }
return true; return true;
} }
......
...@@ -15,4 +15,4 @@ ecm_add_tests( ...@@ -15,4 +15,4 @@ ecm_add_tests(
TestFolderStorage TestFolderStorage
TestTagLoader TestTagLoader
NAME_PREFIX "libs-kritaresources-" NAME_PREFIX "libs-kritaresources-"
LINK_LIBRARIES kritaresources kritaversion KF5::ConfigCore Qt5::Sql Qt5::Test) LINK_LIBRARIES kritaglobal kritaresources kritaversion KF5::ConfigCore Qt5::Sql Qt5::Test)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment