forked from openlp/openlp
More uneeded str's
This commit is contained in:
parent
f374c58d39
commit
a69b2d86ef
@ -217,9 +217,9 @@ def create_thumb(image_path, thumb_path, return_icon=True, size=None):
|
|||||||
if not return_icon:
|
if not return_icon:
|
||||||
return
|
return
|
||||||
if os.path.exists(thumb_path):
|
if os.path.exists(thumb_path):
|
||||||
return build_icon(str(thumb_path))
|
return build_icon(thumb_path)
|
||||||
# Fallback for files with animation support.
|
# Fallback for files with animation support.
|
||||||
return build_icon(str(image_path))
|
return build_icon(image_path)
|
||||||
|
|
||||||
|
|
||||||
def validate_thumb(file_path, thumb_path):
|
def validate_thumb(file_path, thumb_path):
|
||||||
|
@ -372,7 +372,7 @@ class MediaManagerItem(QtGui.QWidget):
|
|||||||
if target_group is None:
|
if target_group is None:
|
||||||
self.list_view.clear()
|
self.list_view.clear()
|
||||||
self.load_list(full_list, target_group)
|
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(self.settings_section + '/last directory', last_dir)
|
||||||
Settings().setValue('%s/%s files' % (self.settings_section, self.settings_section), self.get_file_list())
|
Settings().setValue('%s/%s files' % (self.settings_section, self.settings_section), self.get_file_list())
|
||||||
if duplicates_found:
|
if duplicates_found:
|
||||||
|
Loading…
Reference in New Issue
Block a user