From 71a15a7e127d97045385ce9a998813ff9274d395 Mon Sep 17 00:00:00 2001 From: Petr Nehez Date: Fri, 18 Oct 2019 23:37:35 +0200 Subject: 'deselect()' on clearing filter #402 --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 777ac494..5d9ea132 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -516,8 +516,10 @@ void MainWindow::on_lineEdit_textChanged(const QString &arg1) { void MainWindow::onTimeoutSearch() { QString query = ui->lineEdit->text(); - if (query.isEmpty()) + if (query.isEmpty()) { ui->treeView->collapseAll(); + deselect(); + } query.replace(QRegExp(" "), ".*"); QRegExp regExp(query, Qt::CaseInsensitive); -- cgit v1.2.3 From 134c452759dca7bc60ee474847bb6aa83b9065e4 Mon Sep 17 00:00:00 2001 From: Petr Nehez Date: Sat, 19 Oct 2019 20:56:29 +0200 Subject: ChangeLog updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19eba427..2840d4f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ **Fixed bugs:** - Will not run on Windows 10 1903 b18362.418 [\#486](https://github.com/IJHack/QtPass/issues/486) +- Strange behavior when clearing filter [\#402](https://github.com/IJHack/QtPass/issues/402) **Closed issues:** -- cgit v1.2.3