diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index dd8b5b51b..5353b295a 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -109,6 +109,10 @@ class CustomStudy(QDialog): f.title.setVisible(not not tit) f.spin.setMinimum(smin) f.spin.setMaximum(smax) + if smax > 0: + f.spin.setEnabled(True) + else: + f.spin.setEnabled(False) f.spin.setValue(sval) f.preSpin.setText(pre) f.postSpin.setText(post)