forked from openlp/openlp
fix for image names
This commit is contained in:
parent
d7a84fb592
commit
69b98a44e8
@ -117,12 +117,13 @@ class ImageMediaItem(MediaManagerItem):
|
||||
if items:
|
||||
for item in items:
|
||||
text = self.ListView.item(item.row())
|
||||
try:
|
||||
os.remove(
|
||||
os.path.join(self.servicePath, unicode(text.text())))
|
||||
except OSError:
|
||||
#if not present do not worry
|
||||
pass
|
||||
if text:
|
||||
try:
|
||||
os.remove(
|
||||
os.path.join(self.servicePath, unicode(text.text())))
|
||||
except OSError:
|
||||
#if not present do not worry
|
||||
pass
|
||||
self.ListView.takeItem(item.row())
|
||||
SettingsManager.set_list(self.settingsSection,
|
||||
self.settingsSection, self.getFileList())
|
||||
|
Loading…
Reference in New Issue
Block a user