This commit is contained in:
Kovid Goyal 2014-11-23 11:46:38 +05:30
parent 924df568c9
commit 63ba84eed1

View File

@ -231,6 +231,8 @@ class RecipeList(QWidget): # {{{
if idx.isValid(): if idx.isValid():
self.model.remove((idx.row(),)) self.model.remove((idx.row(),))
self.select_row() self.select_row()
if self.model.rowCount() == 0:
self.stacks.setCurrentIndex(0)
def has_title(self, title): def has_title(self, title):
return self.model.has_title(title) return self.model.has_title(title)