From d93e259702729421317adf3c8ad0c3cce5fdefe6 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 24 Jan 2018 00:26:22 +0100 Subject: [PATCH] fixed expanding/collapsing of items on search --- retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp b/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp index a162d898b..c0f6edb7b 100644 --- a/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp +++ b/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp @@ -1332,11 +1332,14 @@ void SharedFilesDialog::FilterItems() std::list keywords ; std::list 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());