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:
|
if items:
|
||||||
for item in items:
|
for item in items:
|
||||||
text = self.ListView.item(item.row())
|
text = self.ListView.item(item.row())
|
||||||
try:
|
if text:
|
||||||
os.remove(
|
try:
|
||||||
os.path.join(self.servicePath, unicode(text.text())))
|
os.remove(
|
||||||
except OSError:
|
os.path.join(self.servicePath, unicode(text.text())))
|
||||||
#if not present do not worry
|
except OSError:
|
||||||
pass
|
#if not present do not worry
|
||||||
|
pass
|
||||||
self.ListView.takeItem(item.row())
|
self.ListView.takeItem(item.row())
|
||||||
SettingsManager.set_list(self.settingsSection,
|
SettingsManager.set_list(self.settingsSection,
|
||||||
self.settingsSection, self.getFileList())
|
self.settingsSection, self.getFileList())
|
||||||
|
Loading…
Reference in New Issue
Block a user