Allow theme name to be changed after error message

Fixes: https://launchpad.net/bugs/684901
This commit is contained in:
Tim Bentley 2010-12-03 19:00:40 +00:00
parent 37c065a6e4
commit 99cfc65446
1 changed files with 1 additions and 1 deletions

View File

@ -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 == \