fixed bug in read/unread with children menu items

This commit is contained in:
csoler 2018-12-07 22:09:55 +01:00
parent 42aab55961
commit a0b6962bec
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 1 additions and 4 deletions

View File

@ -1201,9 +1201,6 @@ void RsGxsForumModel::recursUpdateReadStatusAndTimes(ForumModelIndex i,bool& has
if(mPosts[i].mMostRecentTsInThread < mPosts[mPosts[i].mChildren[j]].mMostRecentTsInThread) if(mPosts[i].mMostRecentTsInThread < mPosts[mPosts[i].mChildren[j]].mMostRecentTsInThread)
mPosts[i].mMostRecentTsInThread = mPosts[mPosts[i].mChildren[j]].mMostRecentTsInThread; mPosts[i].mMostRecentTsInThread = mPosts[mPosts[i].mChildren[j]].mMostRecentTsInThread;
if(ub && rb) // optimization
break;
} }
if(has_unread_below) if(has_unread_below)

View File

@ -56,7 +56,7 @@
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#define DEBUG_FORUMS //#define DEBUG_FORUMS
/* Images for context menu icons */ /* Images for context menu icons */
#define IMAGE_MESSAGE ":/images/mail_new.png" #define IMAGE_MESSAGE ":/images/mail_new.png"