From fe81bd97191967b347a8b5aed2ee2a363e21ce75 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Jan 2018 12:15:55 +0100 Subject: [PATCH] [bugfix] enable buttons when switching between P and S by hotkey --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index e7fd36a2..fd0ab031 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -acdc-dirty +fde0-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 3a72b761..b1e12ae1 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1555,6 +1555,7 @@ class PickDlg(QDialog): def p_phase_select(self, phase): if not self.p_button.isChecked(): + self.p_button.setEnabled(True) self.p_button.setChecked(True) self.p_button.setText(phase) else: @@ -1566,6 +1567,7 @@ class PickDlg(QDialog): def s_phase_select(self, phase): if not self.s_button.isChecked(): + self.s_button.setEnabled(True) self.s_button.setChecked(True) self.s_button.setText(phase) else: