mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
added missing emit of layoutAboutToBeChanged() in forum model
This commit is contained in:
parent
4423600073
commit
ec0bb5347e
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
// 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);
|
update_posts(forum_group_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1136,6 +1139,8 @@ void RsGxsForumModel::setMsgReadStatus(const QModelIndex& i,bool read_status,boo
|
||||||
if(!i.isValid())
|
if(!i.isValid())
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
|
emit layoutAboutToBeChanged();
|
||||||
|
|
||||||
void *ref = i.internalPointer();
|
void *ref = i.internalPointer();
|
||||||
uint32_t entry = 0;
|
uint32_t entry = 0;
|
||||||
|
|
||||||
|
@ -1146,6 +1151,7 @@ void RsGxsForumModel::setMsgReadStatus(const QModelIndex& i,bool read_status,boo
|
||||||
recursSetMsgReadStatus(entry,read_status,with_children) ;
|
recursSetMsgReadStatus(entry,read_status,with_children) ;
|
||||||
recursUpdateReadStatusAndTimes(0,has_unread_below,has_read_below);
|
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));
|
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(0,COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue