mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 07:16:11 -05:00
fixed update of forum post bold when children posts are set as read
This commit is contained in:
parent
0a78d27cae
commit
056ab8da56
@ -1243,6 +1243,13 @@ void RsGxsForumModel::setMsgReadStatus(const QModelIndex& i,bool read_status,boo
|
||||
recursSetMsgReadStatus(entry,read_status,with_children) ;
|
||||
recursUpdateReadStatusAndTimes(0,has_unread_below,has_read_below);
|
||||
|
||||
// also emit dataChanged() for parents since they need to re-draw
|
||||
|
||||
for(QModelIndex j = i.parent(); j.isValid(); j=j.parent())
|
||||
{
|
||||
emit dataChanged(j,j);
|
||||
j = j.parent();
|
||||
}
|
||||
}
|
||||
|
||||
void RsGxsForumModel::recursSetMsgReadStatus(ForumModelIndex i,bool read_status,bool with_children)
|
||||
|
Loading…
x
Reference in New Issue
Block a user