Skip to content

Commit 371ebaf

Browse files
authored
Merge pull request #490 from petr-nehez/issue-402
Issue #402: 'deselect()' on clearing filter
2 parents 51802e9 + 134c452 commit 371ebaf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
**Fixed bugs:**
88

99
- Will not run on Windows 10 1903 b18362.418 [\#486](https://github.com/IJHack/QtPass/issues/486)
10+
- Strange behavior when clearing filter [\#402](https://github.com/IJHack/QtPass/issues/402)
1011

1112
**Closed issues:**
1213

src/mainwindow.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,10 @@ void MainWindow::on_lineEdit_textChanged(const QString &arg1) {
516516
void MainWindow::onTimeoutSearch() {
517517
QString query = ui->lineEdit->text();
518518

519-
if (query.isEmpty())
519+
if (query.isEmpty()) {
520520
ui->treeView->collapseAll();
521+
deselect();
522+
}
521523

522524
query.replace(QRegExp(" "), ".*");
523525
QRegExp regExp(query, Qt::CaseInsensitive);

0 commit comments

Comments
 (0)