Merge pull request #1670 from csoler/v0.6-GXS-DistSync

fixed bug causing crash when forum being displayed is deleted
This commit is contained in:
csoler 2019-10-06 00:18:58 +02:00 committed by GitHub
commit b7e3300689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,7 +744,7 @@ void RsGxsForumModel::update_posts(const RsGxsGroupId& 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;
return;