mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
fixed bug causing ipossibility to pin/unpin forum posts
This commit is contained in:
parent
07abdeeceb
commit
431fbf4124
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user