make sure to update card count on empty search result

This commit is contained in:
Damien Elmes 2012-04-06 10:49:44 +09:00
parent e23c0fad38
commit 9db9ed4ad5

View file

@ -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)