forked from openlp/openlp
- fixed the down button being visible when when the selected slide is the last one.
bzr-revno: 1404
This commit is contained in:
commit
7a0f550664
@ -220,10 +220,7 @@ class EditCustomForm(QtGui.QDialog, Ui_CustomEditDialog):
|
||||
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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user