[bugfix] enable buttons when switching between P and S by hotkey

This commit is contained in:
Marcel Paffrath 2018-01-09 12:15:55 +01:00
parent fde0de26f2
commit fe81bd9719
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
acdc-dirty
fde0-dirty

View File

@ -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: