mirror of
https://github.com/wassname/sloth.git
synced 2026-07-13 17:45:34 +08:00
Fix problem with constructor ordering
This commit is contained in:
@@ -195,10 +195,11 @@ class ImageModelItem(ModelItem):
|
||||
|
||||
class ImageFileModelItem(FileModelItem, ImageModelItem):
|
||||
def __init__(self, fileinfo):
|
||||
annotations = fileinfo.get("annotations", [])
|
||||
if fileinfo.has_key("annotations"):
|
||||
ImageModelItem.__init__(self, fileinfo["annotations"])
|
||||
del fileinfo["annotations"]
|
||||
FileModelItem.__init__(self, fileinfo)
|
||||
ImageModelItem.__init__(self, annotations)
|
||||
|
||||
def data(self, role=Qt.DisplayRole, column=0):
|
||||
if role == DataRole:
|
||||
|
||||
Reference in New Issue
Block a user