Skip to content

Commit

Permalink
Fix unselecting to one tag doesn't update noteList
Browse files Browse the repository at this point in the history
  • Loading branch information
Waqar144 committed Dec 5, 2019
1 parent 1bdf4be commit 5f9bba7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8309,7 +8309,13 @@ void MainWindow::on_tagTreeWidget_itemSelectionChanged() {

int count = ui->tagTreeWidget->selectedItems().count();

if (count <= 1) return;
if (count <= 1) {
if (count == 1) {
on_tagTreeWidget_currentItemChanged( ui->tagTreeWidget->selectedItems().first(),
Q_NULLPTR);
}
return;
}

const QSignalBlocker blocker(ui->searchLineEdit);
Q_UNUSED(blocker)
Expand Down

0 comments on commit 5f9bba7

Please sign in to comment.