openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #10567
[Merge] lp:~googol/openlp/custom into lp:openlp
Andreas Preikschat has proposed merging lp:~googol/openlp/custom into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~googol/openlp/custom/+merge/66254
Hello,
- When creating/editing a custom slide give the title edit the focus (and not only when creating a new)
- clean ups
- fixed long lines
- simplification
--
https://code.launchpad.net/~googol/openlp/custom/+merge/66254
Your team OpenLP Core is requested to review the proposed merge of lp:~googol/openlp/custom into lp:openlp.
=== modified file 'openlp/plugins/custom/forms/editcustomform.py'
--- openlp/plugins/custom/forms/editcustomform.py 2011-06-12 16:02:52 +0000
+++ openlp/plugins/custom/forms/editcustomform.py 2011-06-29 08:06:49 +0000
@@ -93,7 +93,6 @@
self.titleEdit.setText(u'')
self.creditEdit.setText(u'')
self.themeComboBox.setCurrentIndex(0)
- self.titleEdit.setFocus(QtCore.Qt.OtherFocusReason)
else:
self.customSlide = self.manager.get_object(CustomSlide, id)
self.titleEdit.setText(self.customSlide.title)
@@ -104,10 +103,9 @@
self.slideListView.addItem(slide[1])
theme = self.customSlide.theme_name
find_and_set_in_combo_box(self.themeComboBox, theme)
+ self.titleEdit.setFocus(QtCore.Qt.OtherFocusReason)
# If not preview hide the preview button.
- self.previewButton.setVisible(False)
- if preview:
- self.previewButton.setVisible(True)
+ self.previewButton.setVisible(preview)
def reject(self):
Receiver.send_message(u'custom_edit_clear')
=== modified file 'openlp/plugins/songs/forms/editsongform.py'
--- openlp/plugins/songs/forms/editsongform.py 2011-06-23 13:27:06 +0000
+++ openlp/plugins/songs/forms/editsongform.py 2011-06-29 08:06:49 +0000
@@ -209,9 +209,11 @@
self.alternativeEdit.setText(u'')
if self.song.song_book_id != 0:
book_name = self.manager.get_object(Book, self.song.song_book_id)
- find_and_set_in_combo_box(self.songBookComboBox, unicode(book_name.name))
+ find_and_set_in_combo_box(
+ self.songBookComboBox, unicode(book_name.name))
if self.song.theme_name:
- find_and_set_in_combo_box(self.themeComboBox, unicode(self.song.theme_name))
+ find_and_set_in_combo_box(
+ self.themeComboBox, unicode(self.song.theme_name))
if self.song.copyright:
self.copyrightEdit.setText(self.song.copyright)
else:
Follow ups