do not reload theme list twice when renaming a theme; fixed not reloading list after adding a new theme

This commit is contained in:
Andreas Preikschat 2012-09-19 20:43:02 +02:00
parent 78b88fada5
commit 195608f39e

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):
"""