Merge lp:~meths/openlp/testing into lp:openlp

Proposed by Jon Tibble
Status: Merged
Merged at revision: not available
Proposed branch: lp:~meths/openlp/testing
Merge into: lp:openlp
Diff against target: None lines
To merge this branch: bzr merge lp:~meths/openlp/testing
Reviewer Review Type Date Requested Status
Tim Bentley Approve
Raoul Snyman Approve
Review via email: mp+11666@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jon Tibble (meths) wrote :

Complete theme fixing

Revision history for this message
Raoul Snyman (raoul-snyman) :
review: Approve
Revision history for this message
Tim Bentley (trb143) wrote :

Approved

review: Approve
lp:~meths/openlp/testing updated
535. By Jon Tibble

For Jon
Fix themes 2

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openlp/core/ui/amendthemeform.py'
--- openlp/core/ui/amendthemeform.py 2009-09-12 17:24:16 +0000
+++ openlp/core/ui/amendthemeform.py 2009-09-13 14:12:38 +0000
@@ -201,7 +201,8 @@
201 #self.theme.background_mode201 #self.theme.background_mode
202 self.theme.background_startColor = theme.background_startColor.strip()202 self.theme.background_startColor = theme.background_startColor.strip()
203 #self.theme.background_type203 #self.theme.background_type
204 self.theme.display_display = theme.display_display.strip()204 if theme.display_display:
205 self.theme.display_display = theme.display_display.strip()
205 self.theme.display_horizontalAlign = \206 self.theme.display_horizontalAlign = \
206 theme.display_horizontalAlign.strip()207 theme.display_horizontalAlign.strip()
207 self.theme.display_outline = str_to_bool(theme.display_outline)208 self.theme.display_outline = str_to_bool(theme.display_outline)
208209
=== modified file 'openlp/core/ui/thememanager.py'
--- openlp/core/ui/thememanager.py 2009-09-13 13:24:58 +0000
+++ openlp/core/ui/thememanager.py 2009-09-13 14:12:38 +0000
@@ -139,9 +139,8 @@
139 def onEditTheme(self):139 def onEditTheme(self):
140 item = self.ThemeListWidget.currentItem()140 item = self.ThemeListWidget.currentItem()
141 if item is not None:141 if item is not None:
142 self.amendThemeForm.setTheme(self.getThemeData(142 self.amendThemeForm.loadTheme(
143 item.data(QtCore.Qt.UserRole).toString()))143 unicode(item.data(QtCore.Qt.UserRole).toString()))
144 self.amendThemeForm.loadTheme()
145 self.amendThemeForm.exec_()144 self.amendThemeForm.exec_()
146145
147 def onDeleteTheme(self):146 def onDeleteTheme(self):