mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-09 15:59:25 -04:00
fixed bug in forum post addressing, causing bad update of what has changed when setting messages as read
This commit is contained in:
parent
92555caa25
commit
3a54b2de15
1 changed files with 4 additions and 1 deletions
|
@ -1276,7 +1276,10 @@ void RsGxsForumModel::recursSetMsgReadStatus(ForumModelIndex i,bool read_status,
|
|||
else
|
||||
rsGxsForums->setMessageReadStatus(token,std::make_pair( mForumGroup.mMeta.mGroupId, mPosts[i].mMsgId ), read_status);
|
||||
|
||||
QModelIndex itemIndex = createIndex(i - 1, 0, &mPosts[i]);
|
||||
void *ref ;
|
||||
convertTabEntryToRefPointer(i,ref); // we dont use i+1 here because i is not a row, but an index in the mPosts tab
|
||||
|
||||
QModelIndex itemIndex = createIndex(i - 1, 0, ref);
|
||||
emit dataChanged(itemIndex, itemIndex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue