Fix double edit

This commit is contained in:
Tim Bentley 2011-04-25 11:26:21 +01:00
parent abf44320c3
commit 100fb77456
1 changed files with 2 additions and 1 deletions

View File

@ -435,7 +435,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
if self.updateThemeAllowed:
self.theme.background_type = BackgroundType.to_string(index)
if self.theme.background_type != \
BackgroundType.to_string(BackgroundType.Image):
BackgroundType.to_string(BackgroundType.Image) and \
self.temp_background_filename == u'':
self.temp_background_filename = self.theme.background_filename
self.theme.background_filename = u''
if self.theme.background_type == \