← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~trb143/openlp/192only into lp:openlp

 

Tim Bentley has proposed merging lp:~trb143/openlp/192only into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)


Fix Image maintenance failing with no images!
-- 
https://code.launchpad.net/~trb143/openlp/192only/+merge/28523
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/192only into lp:openlp.
=== modified file 'openlp/core/ui/serviceitemeditform.py'
--- openlp/core/ui/serviceitemeditform.py	2010-06-18 07:42:38 +0000
+++ openlp/core/ui/serviceitemeditform.py	2010-06-25 16:53:24 +0000
@@ -73,6 +73,10 @@
         for frame in self.itemList:
             item_name = QtGui.QListWidgetItem(frame[u'title'])
             self.listWidget.addItem(item_name)
+        if self.listWidget.count() == 1:
+            self.deleteButton.setEnabled(False)
+        else:
+            self.deleteButton.setEnabled(True)
 
     def onItemDelete(self):
         """


Follow ups