forked from openlp/openlp
Fix error when doubleclicking on empty groups
This commit is contained in:
parent
68d034e877
commit
66a41ee8ba
|
@ -451,6 +451,9 @@ class ImageMediaItem(MediaManagerItem):
|
|||
if isinstance(bitem.child(index).data(0, QtCore.Qt.UserRole), ImageFilenames):
|
||||
items.append(bitem.child(index))
|
||||
items.remove(bitem)
|
||||
# Don't try to display empty groups
|
||||
if not items:
|
||||
return False
|
||||
# Find missing files
|
||||
for bitem in items:
|
||||
filename = bitem.data(0, QtCore.Qt.UserRole).filename
|
||||
|
|
Loading…
Reference in New Issue