mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing emit of layoutAboutToBeChanged() in forum model
This commit is contained in:
parent
4423600073
commit
ec0bb5347e
@ -664,6 +664,9 @@ void RsGxsForumModel::setForum(const RsGxsGroupId& forum_group_id)
|
||||
|
||||
// we do not set mForumGroupId yet. We'll do it when the forum data is updated.
|
||||
|
||||
if(forum_group_id.isNull())
|
||||
return;
|
||||
|
||||
update_posts(forum_group_id);
|
||||
}
|
||||
|
||||
@ -1136,6 +1139,8 @@ void RsGxsForumModel::setMsgReadStatus(const QModelIndex& i,bool read_status,boo
|
||||
if(!i.isValid())
|
||||
return ;
|
||||
|
||||
emit layoutAboutToBeChanged();
|
||||
|
||||
void *ref = i.internalPointer();
|
||||
uint32_t entry = 0;
|
||||
|
||||
@ -1146,6 +1151,7 @@ void RsGxsForumModel::setMsgReadStatus(const QModelIndex& i,bool read_status,boo
|
||||
recursSetMsgReadStatus(entry,read_status,with_children) ;
|
||||
recursUpdateReadStatusAndTimes(0,has_unread_below,has_read_below);
|
||||
|
||||
emit layoutChanged();
|
||||
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(0,COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user