← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol-hush/openlp/custom into lp:openlp

 

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

Requested reviews:
  OpenLP Core (openlp-core)

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

Hello

- fixed the down button being visible when when the selected slide is the last one.

To reproduce you first need to delete the last slide. http://img14.imageshack.us/img14/8355/bildschirmfoto180320112.png
-- 
https://code.launchpad.net/~googol-hush/openlp/custom/+merge/54068
Your team OpenLP Core is requested to review the proposed merge of lp:~googol-hush/openlp/custom into lp:openlp.
=== modified file 'openlp/plugins/custom/forms/editcustomform.py'
--- openlp/plugins/custom/forms/editcustomform.py	2011-02-24 05:47:38 +0000
+++ openlp/plugins/custom/forms/editcustomform.py	2011-03-18 20:36:06 +0000
@@ -220,10 +220,7 @@
         Removes the current row from the list.
         """
         self.slideListView.takeItem(self.slideListView.currentRow())
-        if self.slideListView.currentRow() == 0:
-            self.upButton.setEnabled(False)
-        if self.slideListView.currentRow() == self.slideListView.count():
-            self.downButton.setEnabled(False)
+        self.onCurrentRowChanged(self.slideListView.currentRow())
 
     def onCurrentRowChanged(self, row):
         """


Follow ups