Change series of ifs into if/elif/elif

This commit is contained in:
Gerald Britton 2011-05-05 14:23:54 -04:00
parent 37a68a4b87
commit d9afa8ec2d
1 changed files with 6 additions and 6 deletions

View File

@ -676,17 +676,17 @@ class ServiceManager(QtGui.QWidget):
action = self.menu.exec_(self.serviceManagerList.mapToGlobal(point)) action = self.menu.exec_(self.serviceManagerList.mapToGlobal(point))
if action == self.editAction: if action == self.editAction:
self.remoteEdit() self.remoteEdit()
if action == self.maintainAction: elif action == self.maintainAction:
self.onServiceItemEditForm() self.onServiceItemEditForm()
if action == self.deleteAction: elif action == self.deleteAction:
self.onDeleteFromService() self.onDeleteFromService()
if action == self.notesAction: elif action == self.notesAction:
self.onServiceItemNoteForm() self.onServiceItemNoteForm()
if action == self.timeAction: elif action == self.timeAction:
self.onStartTimeForm() self.onStartTimeForm()
if action == self.previewAction: elif action == self.previewAction:
self.makePreview() self.makePreview()
if action == self.liveAction: elif action == self.liveAction:
self.makeLive() self.makeLive()
def onServiceItemNoteForm(self): def onServiceItemNoteForm(self):