From 398c943f4090b6d6f95611f04f944fcb7e0acd81 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 6 Oct 2019 00:12:28 +0200 Subject: [PATCH] fixed bug causing crash when forum being displayed is deleted --- retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp index 38495f204..c032e87ad 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp @@ -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;