Restore favorites and groups mechanism
This commit is contained in:
parent
238e86c930
commit
b4a4f993ff
@ -145,7 +145,7 @@ bool TagsProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_
|
|||||||
qCDebug(dcTags) << "Filter: ID:" << m_filterTagId << "Thing:" << m_filterThingId << "value:" << m_filterValue;
|
qCDebug(dcTags) << "Filter: ID:" << m_filterTagId << "Thing:" << m_filterThingId << "value:" << m_filterValue;
|
||||||
if (!m_filterTagId.isEmpty()) {
|
if (!m_filterTagId.isEmpty()) {
|
||||||
QRegularExpression exp(m_filterTagId);
|
QRegularExpression exp(m_filterTagId);
|
||||||
if (exp.match(tag->tagId()).hasMatch()) {
|
if (!exp.match(tag->tagId()).hasMatch()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -150,7 +150,11 @@ void TagsManager::getTagsResponse(int /*commandId*/, const QVariantMap ¶ms)
|
|||||||
{
|
{
|
||||||
QList<Tag*> tags;
|
QList<Tag*> tags;
|
||||||
foreach (const QVariant &tagVariant, params.value("tags").toList()) {
|
foreach (const QVariant &tagVariant, params.value("tags").toList()) {
|
||||||
Tag *tag = unpackTag(tagVariant.toMap());
|
QVariantMap tagMap = tagVariant.toMap();
|
||||||
|
if (tagMap.value("appId").toString() != "nymea:app") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
Tag *tag = unpackTag(tagMap);
|
||||||
if (tag) {
|
if (tag) {
|
||||||
tags.append(tag);
|
tags.append(tag);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user