From 1031ea40d95212e6fa454ea2ff80a3f7d70a7feb Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 2 Jan 2011 08:03:42 +0000 Subject: [PATCH] Fix Song form clean up for new song having edited previously. Fixes: https://launchpad.net/bugs/696362 --- openlp/plugins/songs/forms/editsongform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 929dfd839..70b0e912b 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -186,9 +186,11 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): self.AuthorsListView.clear() self.TopicsListView.clear() self.TitleEditItem.setFocus(QtCore.Qt.OtherFocusReason) + self.songBookNumberEdit.setText(u'') self.loadAuthors() self.loadTopics() self.loadBooks() + self.ThemeSelectionComboItem.setCurrentIndex(0) # it's a new song to preview is not possible self.previewButton.setVisible(False) @@ -753,4 +755,4 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): def processTitle(self): log.debug(u'processTitle') self.song.search_title = re.sub(r'[\'"`,;:(){}?]+', u'', - unicode(self.song.search_title)).lower() \ No newline at end of file + unicode(self.song.search_title)).lower()