[update] enable/disable comboboxes in pick mode

This commit is contained in:
Marcel Paffrath 2018-01-16 16:10:47 +01:00
parent c520c7c212
commit f4632ac1f5
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
ec39-dirty c520-dirty

View File

@ -1765,6 +1765,8 @@ class PickDlg(QDialog):
def activatePicking(self): def activatePicking(self):
self.leave_rename_phase() self.leave_rename_phase()
self.renamePhaseAction.setEnabled(False) self.renamePhaseAction.setEnabled(False)
self.compareChannel.setEnabled(False)
self.scaleChannel.setEnabled(False)
phase = self.currentPhase phase = self.currentPhase
phaseID = self.getPhaseID(phase) phaseID = self.getPhaseID(phase)
if not phaseID: if not phaseID:
@ -1796,6 +1798,8 @@ class PickDlg(QDialog):
self.disconnectPressEvent() self.disconnectPressEvent()
self.multicompfig.connectEvents() self.multicompfig.connectEvents()
self.renamePhaseAction.setEnabled(True) self.renamePhaseAction.setEnabled(True)
self.compareChannel.setEnabled(True)
self.scaleChannel.setEnabled(True)
self.connect_pick_delete() self.connect_pick_delete()
self.draw() self.draw()