mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
make sure to update card count on empty search result
This commit is contained in:
parent
e23c0fad38
commit
9db9ed4ad5
1 changed files with 2 additions and 1 deletions
|
@ -486,7 +486,8 @@ class Browser(QMainWindow):
|
|||
|
||||
def onRowChanged(self, current, previous):
|
||||
"Update current note and hide/show editor."
|
||||
show = self.model.cards and self.updateTitle() == 1
|
||||
update = self.updateTitle()
|
||||
show = self.model.cards and update == 1
|
||||
self.form.splitter.widget(1).setShown(not not show)
|
||||
if not show:
|
||||
self.editor.setNote(None)
|
||||
|
|
Loading…
Reference in a new issue