mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -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):
|
def onRowChanged(self, current, previous):
|
||||||
"Update current note and hide/show editor."
|
"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)
|
self.form.splitter.widget(1).setShown(not not show)
|
||||||
if not show:
|
if not show:
|
||||||
self.editor.setNote(None)
|
self.editor.setNote(None)
|
||||||
|
|
Loading…
Reference in a new issue