- do not reload theme list twice when renaming a theme

- fixed not reloading list after adding a new theme [regression]

bzr-revno: 2068
This commit is contained in:
Andreas Preikschat 2012-09-20 07:21:17 +02:00
commit ea88f94e85

View File

@ -257,6 +257,7 @@ class ThemeManager(QtGui.QWidget):
theme.set_default_header_footer()
self.themeForm.theme = theme
self.themeForm.exec_()
self.loadThemes()
def onRenameTheme(self):
"""
@ -283,7 +284,6 @@ class ThemeManager(QtGui.QWidget):
plugin.renameTheme(old_theme_name, new_theme_name)
self.mainwindow.renderer.update_theme(
new_theme_name, old_theme_name)
self.loadThemes()
def onCopyTheme(self):
"""