diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsModel.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsModel.cpp index d7bbf344d..4ac243420 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsModel.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsModel.cpp @@ -87,7 +87,20 @@ void updateCommentCounts( std::vector& posts, std::vectorsecond>=posts.size() is impossible by construction, since post_indices + // is previously filled using posts ids. + + if(it == post_indices.end()) + continue; + + ++posts[it->second].mCommentCount; + } }