From 7d7b2a0daef5644bfb46917046acacdbf379b67c Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Fri, 6 Oct 2017 15:33:40 -0700 Subject: [PATCH] Minor fix for updating station criteria when event selection changes --- pyweed/gui/StationOptionsWidget.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyweed/gui/StationOptionsWidget.py b/pyweed/gui/StationOptionsWidget.py index 81274bf..ba83d93 100644 --- a/pyweed/gui/StationOptionsWidget.py +++ b/pyweed/gui/StationOptionsWidget.py @@ -82,7 +82,8 @@ def onEventSelectionChanged(self): change event. """ key = '_locationDistanceFromEvents' - LOGGER.debug("StationOptionsWidget.onEventSelectionChanged: %s", self.getInputValue(key)) - if self.getInputValue(key): + inputValue = self.getInputValue(key) + LOGGER.debug("StationOptionsWidget.onEventSelectionChanged: %s", inputValue) + if inputValue and strtobool(inputValue): self.changed.emit(key) self.changedCoords.emit(key)