Commit a3743384e4520079da6cca0d2bb1a1ecf8954bc7
1 parent
096a9b8f
Exists in
master
and in
68 other branches
FIX: Window width & level preset Context menu in viewer slice is working in Linux
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/gui/widgets/slice_menu.py
| ... | ... | @@ -36,7 +36,7 @@ class SliceMenu(wx.Menu): |
| 36 | 36 | submenu_wl.AppendItem(wl_item) |
| 37 | 37 | self.ID_TO_TOOL_ITEM[new_id] = name |
| 38 | 38 | self.AppendMenu(-1, "Window Width & Level", submenu_wl) |
| 39 | - self.Bind(wx.EVT_MENU, self.OnPopupWindowLevel) | |
| 39 | + submenu_wl.Bind(wx.EVT_MENU, self.OnPopupWindowLevel) | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | def OnPopupWindowLevel(self, evt): | ... | ... |