diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2019-10-21 10:46:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 10:46:13 +0200 |
commit | 371ebaf39b50423905b51737e04fec2028a16bd0 (patch) | |
tree | 3924a036a452a7e2281fdf74073ab7d81aadba44 | |
parent | 51802e9536d0b0a2bfaba8f1a94f7da5b75d686b (diff) | |
parent | 134c452759dca7bc60ee474847bb6aa83b9065e4 (diff) |
Merge pull request #490 from petr-nehez/issue-402
Issue #402: 'deselect()' on clearing filter
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/mainwindow.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
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:** 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); |