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