forked from openlp/openlp
Icon fixes
This commit is contained in:
parent
5a311c6f77
commit
e463e83ed5
@ -362,6 +362,9 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
#if file updated rebuild icon
|
||||
if filedate > thumbdate:
|
||||
self.IconFromFile(file, thumb)
|
||||
if os.path.exists(file):
|
||||
return True
|
||||
return False
|
||||
|
||||
def IconFromFile(self, file, thumb):
|
||||
icon = build_icon(unicode(file))
|
||||
|
@ -124,8 +124,10 @@ class ImageMediaItem(MediaManagerItem):
|
||||
(path, filename) = os.path.split(unicode(file))
|
||||
thumb = os.path.join(self.servicePath, filename)
|
||||
if os.path.exists(thumb):
|
||||
self.validate(file, thumb)
|
||||
if self.validate(file, thumb):
|
||||
icon = build_icon(thumb)
|
||||
else:
|
||||
icon = build_icon(u':/general/general_delete.png')
|
||||
else:
|
||||
icon = self.IconFromFile(file, thumb)
|
||||
item_name = QtGui.QListWidgetItem(filename)
|
||||
|
Loading…
Reference in New Issue
Block a user