mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
fixed search
This commit is contained in:
parent
b7a9962400
commit
37b9bdb068
@ -172,9 +172,7 @@ void RsPostedPostsModel::setFilter(const QStringList& strings, uint32_t& count)
|
||||
count = mFilteredPosts.size();
|
||||
|
||||
mDisplayedStartIndex = 0;
|
||||
|
||||
if(mDisplayedNbPosts > count)
|
||||
mDisplayedNbPosts = count ;
|
||||
mDisplayedNbPosts = std::min(count,DEFAULT_DISPLAYED_NB_POSTS) ;
|
||||
|
||||
std::cerr << "After filtering: " << count << " posts remain." << std::endl;
|
||||
|
||||
|
@ -157,7 +157,8 @@ public:
|
||||
// Helper functions
|
||||
|
||||
bool getPostData(const QModelIndex& i,RsPostedPost& fmpe) const ;
|
||||
uint32_t postsCount() const { return mPosts.size() ; }
|
||||
uint32_t totalPostsCount() const { return mPosts.size() ; }
|
||||
uint32_t filteredPostsCount() const { return mFilteredPosts.size() ; }
|
||||
uint32_t displayedStartPostIndex() const { return mDisplayedStartIndex ; }
|
||||
void clear() ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user