From be397edf1c05a88976519dc0895da1aae805831d Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 17 Dec 2019 17:04:08 +0100 Subject: [PATCH] [bugfix] same problem as prior commit --- pylot/core/util/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index a2de2c60..34121c1d 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -4608,8 +4608,8 @@ class InputsTab(PropTab): self.tstopBox = QSpinBox() for spinbox in [self.tstartBox, self.tstopBox]: spinbox.setRange(-99999, 99999) - self.tstartBox.setValue(settings.value('tstart') if get_None(settings.value('tstart')) else 0) - self.tstopBox.setValue(settings.value('tstop') if get_None(settings.value('tstop')) else 0) + self.tstartBox.setValue(float(settings.value('tstart')) if get_None(settings.value('tstart')) else 0) + self.tstopBox.setValue(float(settings.value('tstop')) if get_None(settings.value('tstop')) else 0) self.cuttimesLayout.addWidget(self.tstartBox, 10) self.cuttimesLayout.addWidget(QLabel('[s] and'), 0) self.cuttimesLayout.addWidget(self.tstopBox, 10)