mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed missing update after filtering
This commit is contained in:
parent
1e6e9dfd12
commit
849ed79cf2
@ -1525,7 +1525,6 @@ void SharedFilesDialog::FilterItems()
|
||||
|
||||
std::cerr << "New last text. Performing the filter on string \"" << text.toStdString() << "\"" << std::endl;
|
||||
mLastFilterText = text ;
|
||||
model->update() ;
|
||||
|
||||
QCursorContextBlocker q(ui.dirTreeView) ;
|
||||
|
||||
@ -1537,6 +1536,7 @@ void SharedFilesDialog::FilterItems()
|
||||
if(text == "")
|
||||
{
|
||||
model->filterItems(std::list<std::string>(),found) ;
|
||||
model->update() ;
|
||||
return ;
|
||||
}
|
||||
|
||||
@ -1551,6 +1551,7 @@ void SharedFilesDialog::FilterItems()
|
||||
keywords.push_back((*it).toStdString());
|
||||
|
||||
model->filterItems(keywords,found) ;
|
||||
model->update() ;
|
||||
|
||||
if(found > 0)
|
||||
expandAll();
|
||||
|
@ -44,8 +44,8 @@
|
||||
|
||||
/*****
|
||||
* #define RDM_DEBUG
|
||||
* #define RDM_SEARCH_DEBUG
|
||||
****/
|
||||
#define RDM_SEARCH_DEBUG
|
||||
|
||||
static const uint32_t FLAT_VIEW_MAX_REFS_PER_SECOND = 2000 ;
|
||||
static const size_t FLAT_VIEW_MAX_REFS_TABLE_SIZE = 10000 ; //
|
||||
|
Loading…
Reference in New Issue
Block a user