From 692a08f8889a37184ceeec2f7bdf20b4e7fe8f25 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 22 Jan 2016 21:04:31 +0100 Subject: [PATCH] When setting the verseorder to uppercase, remember the cursor position. Fixes bug 1536411. Fixes: https://launchpad.net/bugs/1536411 --- openlp/plugins/songs/forms/editsongform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 33b106aa0..2ee408a3c 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -843,7 +843,9 @@ class EditSongForm(QtWidgets.QDialog, Ui_EditSongDialog, RegistryProperties): :param text: The text of the verse order edit (ignored). """ # First make sure that all letters entered in the verse order field are uppercase + pos = self.verse_order_edit.cursorPosition() self.verse_order_edit.setText(text.upper()) + self.verse_order_edit.setCursorPosition(pos) # Extract all verses which were used in the order. verses_in_order = self._extract_verse_order(self.verse_order_edit.text()) # Find the verses which were not used in the order.