mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -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<std::string> keywords ;
|
||||||
std::list<DirDetails> result_list ;
|
std::list<DirDetails> result_list ;
|
||||||
|
|
||||||
if(text.isNull())
|
if(text == "")
|
||||||
{
|
{
|
||||||
int rowCount = ui.dirTreeView->model()->rowCount();
|
int rowCount = ui.dirTreeView->model()->rowCount();
|
||||||
|
|
||||||
for (int row = 0; row < rowCount; ++row)
|
for (int row = 0; row < rowCount; ++row)
|
||||||
recursMakeAllVisible(ui.dirTreeView,ui.dirTreeView->model()->index(row, COLUMN_NAME)) ;
|
recursMakeAllVisible(ui.dirTreeView,ui.dirTreeView->model()->index(row, COLUMN_NAME)) ;
|
||||||
|
|
||||||
|
setCursor(Qt::ArrowCursor);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
keywords.push_back(text.toStdString());
|
keywords.push_back(text.toStdString());
|
||||||
|
Loading…
Reference in New Issue
Block a user