Skip to content

Commit

Permalink
Error in the slice menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmoraes committed Aug 31, 2018
1 parent 39bf7be commit a0d31ec
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions invesalius/gui/widgets/slice_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ def OnPopup(self, evt):
if sys.platform.startswith('linux'):
for i in self.pseudo_color_items:
it = self.pseudo_color_items[i]
if it.IsChecked():
it.Toggle()
it.Check(False)

item.Toggle()
item.Check()
self.HideClutDialog()
self._gen_event = True

Expand All @@ -244,10 +243,9 @@ def OnPopup(self, evt):
if sys.platform.startswith('linux'):
for i in self.pseudo_color_items:
it = self.pseudo_color_items[i]
if it.IsChecked():
it.Toggle()
it.Check(False)

item.Toggle()
item.Check()
self.HideClutDialog()
self._gen_event = True

Expand Down Expand Up @@ -276,10 +274,9 @@ def OnPopup(self, evt):
if sys.platform.startswith('linux'):
for i in self.pseudo_color_items:
it = self.pseudo_color_items[i]
if it.IsChecked():
it.Toggle()
it.Check(False)

item.Toggle()
item.Check()
item = self.ID_TO_TOOL_ITEM[evt.GetId()]
item.Check(True)
self._gen_event = False
Expand Down

0 comments on commit a0d31ec

Please sign in to comment.