From 540f63c9de96dbdaf921c7e8a3d7ff157548cd4c Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 10 Dec 2009 17:03:21 +0000 Subject: [PATCH] Fix Theme handling so Song level works again bzr-revno: 686 --- openlp/core/ui/themestab.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/openlp/core/ui/themestab.py b/openlp/core/ui/themestab.py index e5fce5d7b..f8afb878d 100644 --- a/openlp/core/ui/themestab.py +++ b/openlp/core/ui/themestab.py @@ -137,24 +137,20 @@ class ThemesTab(SettingsTab): self.config.set_config(u'theme level', self.theme_level) self.config.set_config(u'global theme',self.global_theme) Receiver.send_message(u'update_global_theme', self.global_theme) + self.parent.RenderManager.set_global_theme( + self.global_theme, self.theme_level) def postSetUp(self): Receiver.send_message(u'update_global_theme', self.global_theme) def onSongLevelButtonPressed(self): - self.global_style = u'Song' - self.parent.RenderManager.set_global_theme( - self.global_theme, self.theme_level) + self.theme_level = ThemeLevel.Song def onServiceLevelButtonPressed(self): - self.global_style = u'Service' - self.parent.RenderManager.set_global_theme( - self.global_theme, self.theme_level) + self.theme_level = ThemeLevel.Service def onGlobalLevelButtonPressed(self): - self.global_style = u'Global' - self.parent.RenderManager.set_global_theme( - self.global_theme, self.theme_level) + self.theme_level = ThemeLevel.Global def onDefaultComboBoxChanged(self, value): self.global_theme = unicode(self.DefaultComboBox.currentText())