diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index bc427830e..1bec55743 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -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): diff --git a/openlp/core/lib/mediamanageritem.py b/openlp/core/lib/mediamanageritem.py index 9e7eb8d73..c086c7494 100644 --- a/openlp/core/lib/mediamanageritem.py +++ b/openlp/core/lib/mediamanageritem.py @@ -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: