- fixed the down button being visible when when the selected slide is the last one.

bzr-revno: 1404
This commit is contained in:
Andreas Preikschat 2011-03-18 22:22:49 +01:00
commit 7a0f550664
1 changed files with 1 additions and 4 deletions

View File

@ -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):
"""