mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
d60b1a40d2
commit
4799d6143a
@ -38,7 +38,10 @@ class CustomRecipeModel(QAbstractListModel):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def rowCount(self, *args):
|
def rowCount(self, *args):
|
||||||
return len(self.recipe_model.custom_recipe_collection)
|
try:
|
||||||
|
return len(self.recipe_model.custom_recipe_collection)
|
||||||
|
except:
|
||||||
|
return 0
|
||||||
|
|
||||||
def data(self, index, role):
|
def data(self, index, role):
|
||||||
if role == Qt.DisplayRole:
|
if role == Qt.DisplayRole:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user