From a5cc86d0433f4f35f1670ca05cf3ca5a2db2523e Mon Sep 17 00:00:00 2001 From: Victor Hugo Souza Date: Wed, 12 Jun 2019 20:23:23 +0300 Subject: [PATCH] FIX: Default object registration reference mode for Patriot and ISOTRAK --- invesalius/gui/dialogs.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index 597dd25..c1cbce5 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -3354,12 +3354,13 @@ class ObjectCalibrationDialog(wx.Dialog): tooltip = wx.ToolTip(_(u"Choose the object reference mode")) choice_ref = wx.ComboBox(self, -1, "", size=wx.Size(90, 23), choices=const.REF_MODE, style=wx.CB_DROPDOWN | wx.CB_READONLY) - choice_ref.SetSelection(1) choice_ref.SetToolTip(tooltip) choice_ref.Bind(wx.EVT_COMBOBOX, self.OnChoiceRefMode) - choice_ref.Enable(0) - if not (self.tracker_id == const.PATRIOT or self.tracker_id == const.ISOTRAKII): - choice_ref.Enable(1) + choice_ref.SetSelection(1) + choice_ref.Enable(1) + if self.tracker_id == const.PATRIOT or self.tracker_id == const.ISOTRAKII: + choice_ref.SetSelection(0) + choice_ref.Enable(0) # ComboBox for sensor selection for FASTRAK tooltip = wx.ToolTip(_(u"Choose the FASTRAK sensor port")) -- libgit2 0.21.2