This commit is contained in:
Kovid Goyal 2010-10-08 14:00:23 -06:00
parent d60b1a40d2
commit 4799d6143a

View File

@ -38,7 +38,10 @@ class CustomRecipeModel(QAbstractListModel):
return False
def rowCount(self, *args):
try:
return len(self.recipe_model.custom_recipe_collection)
except:
return 0
def data(self, index, role):
if role == Qt.DisplayRole: