moved method to its old position

This commit is contained in:
Andreas Preikschat 2010-10-10 15:29:08 +02:00
parent 4dde13136c
commit 144060a74b

View File

@ -189,15 +189,6 @@ class EditCustomForm(QtGui.QDialog, Ui_CustomEditDialog):
self.deleteButton.setEnabled(True) self.deleteButton.setEnabled(True)
self.editButton.setEnabled(True) self.editButton.setEnabled(True)
def onDeleteButtonPressed(self):
self.verseListView.takeItem(self.verseListView.currentRow())
self.editButton.setEnabled(True)
self.editAllButton.setEnabled(True)
if self.verseListView.count() == 0:
self.deleteButton.setEnabled(False)
self.editButton.setEnabled(False)
self.editAllButton.setEnabled(False)
def onAddButtonPressed(self): def onAddButtonPressed(self):
self.slide_form.setText(u'') self.slide_form.setText(u'')
if self.slide_form.exec_(): if self.slide_form.exec_():
@ -257,6 +248,15 @@ class EditCustomForm(QtGui.QDialog, Ui_CustomEditDialog):
self.verseListView.addItem(slide) self.verseListView.addItem(slide)
self.verseListView.repaint() self.verseListView.repaint()
def onDeleteButtonPressed(self):
self.verseListView.takeItem(self.verseListView.currentRow())
self.editButton.setEnabled(True)
self.editAllButton.setEnabled(True)
if self.verseListView.count() == 0:
self.deleteButton.setEnabled(False)
self.editButton.setEnabled(False)
self.editAllButton.setEnabled(False)
def _validate(self): def _validate(self):
""" """
Checks whether a custom is valid or not. Checks whether a custom is valid or not.