Ensure all nodes are shown when filter is cleared

This commit is contained in:
Vikram Ambrose 2018-01-11 13:31:23 +02:00
parent 3da938eac2
commit ae71d24f6e
1 changed files with 2 additions and 1 deletions

View File

@ -367,10 +367,11 @@ void PlaylistListContainer::SearchTextEdited(const QString& text) {
QRegExp regexp(text);
regexp.setCaseSensitivity(Qt::CaseInsensitive);
proxy_->setFilterRegExp(regexp);
if(regexp.isEmpty()) {
ui_->tree->collapseAll();
} else {
proxy_->setFilterRegExp(regexp);
proxy_->refreshExpanded(ui_->tree);
}
}