mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
fixed expanding/collapsing of items on search
This commit is contained in:
parent
1ee353c5a7
commit
d93e259702
@ -1332,11 +1332,14 @@ void SharedFilesDialog::FilterItems()
|
||||
std::list<std::string> keywords ;
|
||||
std::list<DirDetails> result_list ;
|
||||
|
||||
if(text.isNull())
|
||||
if(text == "")
|
||||
{
|
||||
int rowCount = ui.dirTreeView->model()->rowCount();
|
||||
|
||||
for (int row = 0; row < rowCount; ++row)
|
||||
recursMakeAllVisible(ui.dirTreeView,ui.dirTreeView->model()->index(row, COLUMN_NAME)) ;
|
||||
|
||||
setCursor(Qt::ArrowCursor);
|
||||
return ;
|
||||
}
|
||||
keywords.push_back(text.toStdString());
|
||||
|
Loading…
Reference in New Issue
Block a user