forked from openlp/openlp
Fix test
This commit is contained in:
parent
39ff8e2bc4
commit
29f3025d42
@ -291,7 +291,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
self.updateThemeAllowed = True
|
self.updateThemeAllowed = True
|
||||||
self.themeNameLabel.setVisible(not edit)
|
self.themeNameLabel.setVisible(not edit)
|
||||||
self.themeNameEdit.setVisible(not edit)
|
self.themeNameEdit.setVisible(not edit)
|
||||||
self.edit = edit
|
self.edit_mode = edit
|
||||||
if edit:
|
if edit:
|
||||||
self.setWindowTitle(unicode(translate('OpenLP.ThemeWizard',
|
self.setWindowTitle(unicode(translate('OpenLP.ThemeWizard',
|
||||||
'Edit Theme - %s')) % self.theme.theme_name)
|
'Edit Theme - %s')) % self.theme.theme_name)
|
||||||
@ -590,8 +590,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
os.path.split(unicode(self.theme.background_filename))[1]
|
os.path.split(unicode(self.theme.background_filename))[1]
|
||||||
saveTo = os.path.join(self.path, self.theme.theme_name, filename)
|
saveTo = os.path.join(self.path, self.theme.theme_name, filename)
|
||||||
saveFrom = self.theme.background_filename
|
saveFrom = self.theme.background_filename
|
||||||
if not self.edit:
|
if not self.edit_mode and \
|
||||||
if not self.thememanager.checkIfThemeExists(self.theme.theme_name):
|
not self.thememanager.checkIfThemeExists(self.theme.theme_name):
|
||||||
return
|
return
|
||||||
self.accepted = True
|
self.accepted = True
|
||||||
self.thememanager.saveTheme(self.theme, saveFrom, saveTo)
|
self.thememanager.saveTheme(self.theme, saveFrom, saveTo)
|
||||||
|
Loading…
Reference in New Issue
Block a user