Improved delete button behaviour

This commit is contained in:
andreas 2010-06-26 18:08:38 +02:00
parent 8fc78fb10d
commit 696c413cee

View File

@ -91,6 +91,10 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog):
row = self.listWidget.row(item)
self.itemList.remove(self.itemList[row])
self.loadData()
if row == self.listWidget.count():
self.listWidget.setCurrentRow(row - 1)
else:
self.listWidget.setCurrentRow(row)
def onItemUp(self):
"""