fix for image names

This commit is contained in:
M2j 2010-06-07 11:37:27 +02:00
parent d7a84fb592
commit 69b98a44e8

View File

@ -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())