From 1800ae4ddbe7f4eda60964b14b8329781d42b62e Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 25 Jun 2010 20:18:52 +0200 Subject: [PATCH] improvement in regard to bug #598415 --- openlp/core/ui/serviceitemeditform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openlp/core/ui/serviceitemeditform.py b/openlp/core/ui/serviceitemeditform.py index d667507af..4355ab797 100644 --- a/openlp/core/ui/serviceitemeditform.py +++ b/openlp/core/ui/serviceitemeditform.py @@ -74,8 +74,12 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog): item_name = QtGui.QListWidgetItem(frame[u'title']) self.listWidget.addItem(item_name) if self.listWidget.count() == 1: + self.downButton.setEnabled(False) + self.upButton.setEnabled(False) self.deleteButton.setEnabled(False) else: + self.downButton.setEnabled(True) + self.upButton.setEnabled(True) self.deleteButton.setEnabled(True) def onItemDelete(self):