forked from openlp/openlp
fixed downButton being visible
This commit is contained in:
parent
d3339d57d6
commit
9622a74467
@ -220,10 +220,7 @@ class EditCustomForm(QtGui.QDialog, Ui_CustomEditDialog):
|
|||||||
Removes the current row from the list.
|
Removes the current row from the list.
|
||||||
"""
|
"""
|
||||||
self.slideListView.takeItem(self.slideListView.currentRow())
|
self.slideListView.takeItem(self.slideListView.currentRow())
|
||||||
if self.slideListView.currentRow() == 0:
|
self.onCurrentRowChanged(self.slideListView.currentRow())
|
||||||
self.upButton.setEnabled(False)
|
|
||||||
if self.slideListView.currentRow() == self.slideListView.count():
|
|
||||||
self.downButton.setEnabled(False)
|
|
||||||
|
|
||||||
def onCurrentRowChanged(self, row):
|
def onCurrentRowChanged(self, row):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user