Commit a5cc86d0433f4f35f1670ca05cf3ca5a2db2523e
1 parent
d8847e71
Exists in
master
FIX: Default object registration reference mode for Patriot and ISOTRAK
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
invesalius/gui/dialogs.py
... | ... | @@ -3354,12 +3354,13 @@ class ObjectCalibrationDialog(wx.Dialog): |
3354 | 3354 | tooltip = wx.ToolTip(_(u"Choose the object reference mode")) |
3355 | 3355 | choice_ref = wx.ComboBox(self, -1, "", size=wx.Size(90, 23), |
3356 | 3356 | choices=const.REF_MODE, style=wx.CB_DROPDOWN | wx.CB_READONLY) |
3357 | - choice_ref.SetSelection(1) | |
3358 | 3357 | choice_ref.SetToolTip(tooltip) |
3359 | 3358 | choice_ref.Bind(wx.EVT_COMBOBOX, self.OnChoiceRefMode) |
3360 | - choice_ref.Enable(0) | |
3361 | - if not (self.tracker_id == const.PATRIOT or self.tracker_id == const.ISOTRAKII): | |
3362 | - choice_ref.Enable(1) | |
3359 | + choice_ref.SetSelection(1) | |
3360 | + choice_ref.Enable(1) | |
3361 | + if self.tracker_id == const.PATRIOT or self.tracker_id == const.ISOTRAKII: | |
3362 | + choice_ref.SetSelection(0) | |
3363 | + choice_ref.Enable(0) | |
3363 | 3364 | |
3364 | 3365 | # ComboBox for sensor selection for FASTRAK |
3365 | 3366 | tooltip = wx.ToolTip(_(u"Choose the FASTRAK sensor port")) | ... | ... |