forked from openlp/openlp
Fix Song form clean up for new song having edited previously.
Fixes: https://launchpad.net/bugs/696362
This commit is contained in:
parent
0df8096775
commit
1031ea40d9
|
@ -186,9 +186,11 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||||
self.AuthorsListView.clear()
|
self.AuthorsListView.clear()
|
||||||
self.TopicsListView.clear()
|
self.TopicsListView.clear()
|
||||||
self.TitleEditItem.setFocus(QtCore.Qt.OtherFocusReason)
|
self.TitleEditItem.setFocus(QtCore.Qt.OtherFocusReason)
|
||||||
|
self.songBookNumberEdit.setText(u'')
|
||||||
self.loadAuthors()
|
self.loadAuthors()
|
||||||
self.loadTopics()
|
self.loadTopics()
|
||||||
self.loadBooks()
|
self.loadBooks()
|
||||||
|
self.ThemeSelectionComboItem.setCurrentIndex(0)
|
||||||
# it's a new song to preview is not possible
|
# it's a new song to preview is not possible
|
||||||
self.previewButton.setVisible(False)
|
self.previewButton.setVisible(False)
|
||||||
|
|
||||||
|
@ -753,4 +755,4 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||||
def processTitle(self):
|
def processTitle(self):
|
||||||
log.debug(u'processTitle')
|
log.debug(u'processTitle')
|
||||||
self.song.search_title = re.sub(r'[\'"`,;:(){}?]+', u'',
|
self.song.search_title = re.sub(r'[\'"`,;:(){}?]+', u'',
|
||||||
unicode(self.song.search_title)).lower()
|
unicode(self.song.search_title)).lower()
|
||||||
|
|
Loading…
Reference in New Issue