mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 09:11:28 -05: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;
|
std::cerr << "New last text. Performing the filter on string \"" << text.toStdString() << "\"" << std::endl;
|
||||||
mLastFilterText = text ;
|
mLastFilterText = text ;
|
||||||
model->update() ;
|
|
||||||
|
|
||||||
QCursorContextBlocker q(ui.dirTreeView) ;
|
QCursorContextBlocker q(ui.dirTreeView) ;
|
||||||
|
|
||||||
@ -1537,6 +1536,7 @@ void SharedFilesDialog::FilterItems()
|
|||||||
if(text == "")
|
if(text == "")
|
||||||
{
|
{
|
||||||
model->filterItems(std::list<std::string>(),found) ;
|
model->filterItems(std::list<std::string>(),found) ;
|
||||||
|
model->update() ;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1551,6 +1551,7 @@ void SharedFilesDialog::FilterItems()
|
|||||||
keywords.push_back((*it).toStdString());
|
keywords.push_back((*it).toStdString());
|
||||||
|
|
||||||
model->filterItems(keywords,found) ;
|
model->filterItems(keywords,found) ;
|
||||||
|
model->update() ;
|
||||||
|
|
||||||
if(found > 0)
|
if(found > 0)
|
||||||
expandAll();
|
expandAll();
|
||||||
|
@ -44,8 +44,8 @@
|
|||||||
|
|
||||||
/*****
|
/*****
|
||||||
* #define RDM_DEBUG
|
* #define RDM_DEBUG
|
||||||
|
* #define RDM_SEARCH_DEBUG
|
||||||
****/
|
****/
|
||||||
#define RDM_SEARCH_DEBUG
|
|
||||||
|
|
||||||
static const uint32_t FLAT_VIEW_MAX_REFS_PER_SECOND = 2000 ;
|
static const uint32_t FLAT_VIEW_MAX_REFS_PER_SECOND = 2000 ;
|
||||||
static const size_t FLAT_VIEW_MAX_REFS_TABLE_SIZE = 10000 ; //
|
static const size_t FLAT_VIEW_MAX_REFS_TABLE_SIZE = 10000 ; //
|
||||||
|
Loading…
x
Reference in New Issue
Block a user