=== modified file 'openlp/core/ui/thememanager.py'
--- openlp/core/ui/thememanager.py 2017-05-24 20:04:48 +0000
+++ openlp/core/ui/thememanager.py 2017-05-30 10:55:37 +0000
@@ -572,9 +572,9 @@
raise ValidationError
theme_name = xml_tree.find('name').text.strip()
else:
- theme = Theme()
- theme.load_theme(theme_zip.read(json_file[0]).decode("utf-8"))
- theme_name = theme.theme_name
+ new_theme = Theme()
+ new_theme.load_theme(theme_zip.read(json_file[0]).decode("utf-8"))
+ theme_name = new_theme.theme_name
json_theme = True
theme_folder = os.path.join(directory, theme_name)
theme_exists = os.path.exists(theme_folder)