Commit f8b595d952038279a6540f86abf803706d6de709
1 parent
db0a0093
Exists in
master
invesalius was not closing because neuronavigation_api was not being passed to n…
…avigation init on closing project (fix #427)
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
invesalius/gui/task_navigator.py
... | ... | @@ -362,6 +362,7 @@ class NeuronavigationPanel(wx.Panel): |
362 | 362 | |
363 | 363 | # Initialize global variables |
364 | 364 | self.pedal_connection = pedal_connection |
365 | + self.neuronavigation_api = neuronavigation_api | |
365 | 366 | |
366 | 367 | self.navigation = Navigation( |
367 | 368 | pedal_connection=pedal_connection, |
... | ... | @@ -875,6 +876,7 @@ class NeuronavigationPanel(wx.Panel): |
875 | 876 | self.navigation.StopNavigation() |
876 | 877 | self.navigation.__init__( |
877 | 878 | pedal_connection=self.pedal_connection, |
879 | + neuronavigation_api=self.neuronavigation_api | |
878 | 880 | ) |
879 | 881 | self.tracker.__init__() |
880 | 882 | self.icp.__init__() | ... | ... |