Enable toggling tags
This commit is contained in:
parent
d8c0d4874b
commit
8d2d8dc267
8 changed files with 73 additions and 15 deletions
|
|
@ -118,6 +118,7 @@ CommunitiesModel::clear()
|
|||
beginResetModel();
|
||||
tags_.clear();
|
||||
endResetModel();
|
||||
resetCurrentTagId();
|
||||
|
||||
emit tagsChanged();
|
||||
}
|
||||
|
|
@ -148,12 +149,12 @@ CommunitiesModel::setCurrentTagId(QString tagId)
|
|||
for (const auto &t : tags_) {
|
||||
if (t == tag) {
|
||||
this->currentTagId_ = tagId;
|
||||
emit currentTagIdChanged();
|
||||
emit currentTagIdChanged(currentTagId_);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this->currentTagId_ = "";
|
||||
emit currentTagIdChanged();
|
||||
emit currentTagIdChanged(currentTagId_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue