From 431fbf41246019b0fb58476e2809825e3be3aefc Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 20 Mar 2019 23:23:13 +0100 Subject: [PATCH] fixed bug causing ipossibility to pin/unpin forum posts --- retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp index f388564c1..8d6debb50 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp @@ -1558,7 +1558,7 @@ void GxsForumThreadWidget::togglePinUpPost() // normally this method is only called on top level items. We still check it just in case... - if(mThreadProxyModel->mapToSource(index).parent() != mThreadModel->root()) + if(mThreadProxyModel->mapToSource(index).parent().isValid()) { std::cerr << "(EE) togglePinUpPost() called on non top level post. This is inconsistent." << std::endl; return ;