forked from openlp/openlp
Allow theme name to be changed after error message
Fixes: https://launchpad.net/bugs/684901
This commit is contained in:
parent
37c065a6e4
commit
99cfc65446
@ -606,7 +606,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
# Hack to stop it for now.
|
# Hack to stop it for now.
|
||||||
if self.accepted:
|
if self.accepted:
|
||||||
return
|
return
|
||||||
self.accepted = True
|
|
||||||
# Save the theme name
|
# Save the theme name
|
||||||
self.theme.theme_name = \
|
self.theme.theme_name = \
|
||||||
unicode(self.field(u'name').toString())
|
unicode(self.field(u'name').toString())
|
||||||
@ -628,6 +627,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
(QtGui.QMessageBox.Ok),
|
(QtGui.QMessageBox.Ok),
|
||||||
QtGui.QMessageBox.Ok)
|
QtGui.QMessageBox.Ok)
|
||||||
return
|
return
|
||||||
|
self.accepted = True
|
||||||
saveFrom = None
|
saveFrom = None
|
||||||
saveTo = None
|
saveTo = None
|
||||||
if self.theme.background_type == \
|
if self.theme.background_type == \
|
||||||
|
Loading…
Reference in New Issue
Block a user