Commit 03d3b276 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Ignore "-1" tag ids when retrieving tags by property

Works around earlier bugs which introduced these invalid entries into the db table.
CCBUG: 277169
parent d728747d
......@@ -805,6 +805,12 @@ QList<int> TagsCache::tagsWithProperty(const QString& property, const QString& v
for (TagPropertiesConstIterator it = d->tagProperties.begin(); it != d->tagProperties.end(); )
// sort out invalid entries, see bug #277169
if (it->tagId <= 0)
if (d->compareProperty(it, property, value))
ids << it->tagId;
Supports Markdown
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