fixed bug causing crash when forum being displayed is deleted

This commit is contained in:
csoler 2019-10-06 00:12:28 +02:00
parent 529dc2aa00
commit 398c943f40
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -744,7 +744,7 @@ void RsGxsForumModel::update_posts(const RsGxsGroupId& group_id)
forumIds.push_back(group_id); forumIds.push_back(group_id);
if(!rsGxsForums->getForumsInfo(forumIds,groups)) if(!rsGxsForums->getForumsInfo(forumIds,groups) || groups.size() != 1)
{ {
std::cerr << __PRETTY_FUNCTION__ << " failed to retrieve forum group info for forum " << group_id << std::endl; std::cerr << __PRETTY_FUNCTION__ << " failed to retrieve forum group info for forum " << group_id << std::endl;
return; return;