From e0a7dd7335fd47c8742c03590cb62d82c96f895e Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Mon, 21 Sep 2009 03:42:59 +0100 Subject: [PATCH] Fix song editor Add Theme button --- openlp/plugins/songs/forms/editsongform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 94de8f768..fc7a130a8 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -45,6 +45,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): Constructor """ QtGui.QDialog.__init__(self, parent) + self.parent = parent self.setupUi(self) # Connecting signals and slots QtCore.QObject.connect(self.AuthorAddButton, @@ -78,6 +79,9 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): QtCore.SIGNAL(u'activated(int)'), self.onSongBookComboChanged) QtCore.QObject.connect(self.ThemeSelectionComboItem, QtCore.SIGNAL(u'activated(int)'), self.onThemeComboChanged) + QtCore.QObject.connect(self.ThemeAddButton, + QtCore.SIGNAL(u'clicked()'), + self.parent.parent.render_manager.theme_manager.onAddTheme) QtCore.QObject.connect(self.MaintenanceButton, QtCore.SIGNAL(u'clicked()'), self.onMaintenanceButtonClicked) QtCore.QObject.connect(self.TitleEditItem, @@ -92,7 +96,6 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): QtCore.SIGNAL(u'lostFocus()'), self.onVerseOrderEditLostFocus) # Create other objects and forms self.songmanager = songmanager - self.parent = parent self.verse_form = EditVerseForm() self.initialise() self.AuthorsListView.setSortingEnabled(False)