More uneeded str's

This commit is contained in:
Philip Ridout 2013-10-28 21:23:17 +00:00
parent f374c58d39
commit a69b2d86ef
2 changed files with 3 additions and 3 deletions

View File

@ -217,9 +217,9 @@ def create_thumb(image_path, thumb_path, return_icon=True, size=None):
if not return_icon:
return
if os.path.exists(thumb_path):
return build_icon(str(thumb_path))
return build_icon(thumb_path)
# Fallback for files with animation support.
return build_icon(str(image_path))
return build_icon(image_path)
def validate_thumb(file_path, thumb_path):

View File

@ -372,7 +372,7 @@ class MediaManagerItem(QtGui.QWidget):
if target_group is None:
self.list_view.clear()
self.load_list(full_list, target_group)
last_dir = os.path.split(str(files[0]))[0]
last_dir = os.path.split(files[0])[0]
Settings().setValue(self.settings_section + '/last directory', last_dir)
Settings().setValue('%s/%s files' % (self.settings_section, self.settings_section), self.get_file_list())
if duplicates_found: