Fix Qt < 5.14 compat
This commit is contained in:
parent
6ae1a5e8ad
commit
80eb2d915d
@ -151,7 +151,11 @@ CommunitiesList::addCommunity(const std::string &group_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto hiddenTags = hiddenTagsAndCommunities();
|
auto hiddenTags = hiddenTagsAndCommunities();
|
||||||
UserSettings::instance()->setHiddenTags({hiddenTags.begin(), hiddenTags.end()});
|
// Qt < 5.14 compat
|
||||||
|
QStringList hiddenTags_;
|
||||||
|
for (auto &&t : hiddenTags)
|
||||||
|
hiddenTags_.push_back(t);
|
||||||
|
UserSettings::instance()->setHiddenTags(hiddenTags_);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (group_id.empty() || group_id.front() != '+')
|
if (group_id.empty() || group_id.front() != '+')
|
||||||
|
Loading…
Reference in New Issue
Block a user