forked from openlp/openlp
Fix bug #598415
This commit is contained in:
parent
8a83cb6e25
commit
7c873ada58
@ -73,6 +73,10 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog):
|
|||||||
for frame in self.itemList:
|
for frame in self.itemList:
|
||||||
item_name = QtGui.QListWidgetItem(frame[u'title'])
|
item_name = QtGui.QListWidgetItem(frame[u'title'])
|
||||||
self.listWidget.addItem(item_name)
|
self.listWidget.addItem(item_name)
|
||||||
|
if self.listWidget.count() == 1:
|
||||||
|
self.deleteButton.setEnabled(False)
|
||||||
|
else:
|
||||||
|
self.deleteButton.setEnabled(True)
|
||||||
|
|
||||||
def onItemDelete(self):
|
def onItemDelete(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user