Andreas Preikschat has proposed merging lp:~googol-hush/openlp/tweaks into 
lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~googol-hush/openlp/tweaks/+merge/49450

- Fixed selecting the wrong item when moving an item down (re-ordering images)
-- 
https://code.launchpad.net/~googol-hush/openlp/tweaks/+merge/49450
Your team OpenLP Core is requested to review the proposed merge of 
lp:~googol-hush/openlp/tweaks into lp:openlp.
=== modified file 'openlp/core/ui/serviceitemeditform.py'
--- openlp/core/ui/serviceitemeditform.py	2011-02-03 18:19:56 +0000
+++ openlp/core/ui/serviceitemeditform.py	2011-02-11 18:58:57 +0000
@@ -110,11 +110,12 @@
         temp = self.itemList[row]
         self.itemList.remove(self.itemList[row])
         if direction == u'up':
-            self.itemList.insert(row - 1, temp)
+            row -= 1
         else:
-            self.itemList.insert(row + 1, temp)
+            row += 1
+        self.itemList.insert(row, temp)
         self.loadData()
-        self.listWidget.setCurrentRow(row + 1)
+        self.listWidget.setCurrentRow(row)
 
     def onCurrentRowChanged(self, row):
         """

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to