fixed missing update after filtering

This commit is contained in:
csoler 2018-04-22 17:38:14 +02:00
parent 1e6e9dfd12
commit 849ed79cf2
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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 ; //