forked from openlp/openlp
- 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:
commit
ea88f94e85
@ -257,6 +257,7 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
theme.set_default_header_footer()
|
theme.set_default_header_footer()
|
||||||
self.themeForm.theme = theme
|
self.themeForm.theme = theme
|
||||||
self.themeForm.exec_()
|
self.themeForm.exec_()
|
||||||
|
self.loadThemes()
|
||||||
|
|
||||||
def onRenameTheme(self):
|
def onRenameTheme(self):
|
||||||
"""
|
"""
|
||||||
@ -283,7 +284,6 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
plugin.renameTheme(old_theme_name, new_theme_name)
|
plugin.renameTheme(old_theme_name, new_theme_name)
|
||||||
self.mainwindow.renderer.update_theme(
|
self.mainwindow.renderer.update_theme(
|
||||||
new_theme_name, old_theme_name)
|
new_theme_name, old_theme_name)
|
||||||
self.loadThemes()
|
|
||||||
|
|
||||||
def onCopyTheme(self):
|
def onCopyTheme(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user