Skip to content

Commit 4788d99

Browse files
committed
#166 Resolved an issue where if the user selects the 'all' filter, the checked site or variable wouldn't be reset
1 parent 4768d03 commit 4788d99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

odmtools/controller/frmSeriesSelector.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ def onRbAllRadiobutton(self, event):
189189
:return:
190190
"""
191191

192-
logger.debug("onRbAllRadioButton called! ")
192+
if self.checkSite.GetValue() or self.checkVariable.GetValue():
193+
self.checkSite.SetValue(False)
194+
self.checkVariable.SetValue(False)
195+
196+
#logger.debug("onRbAllRadioButton called! ")
193197
self.cpnlSimple.Collapse(True)
194198
self.Layout()
195199
self.setFilter()
@@ -205,6 +209,8 @@ def onRbSimpleRadiobutton(self, event):
205209
self.cpnlSimple.Expand()
206210
self.Layout()
207211

212+
213+
##
208214
if not self.checkSite.GetValue() and not self.checkVariable.GetValue():
209215
self.setFilter()
210216
return

0 commit comments

Comments
 (0)