fixed bug causing ipossibility to pin/unpin forum posts

This commit is contained in:
csoler 2019-03-20 23:23:13 +01:00
parent 07abdeeceb
commit 431fbf4124
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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 ;