Do not show menu items which are specific to modules when user clicks rack separator

This commit is contained in:
DarkPhoenix
2019-04-23 16:23:35 +03:00
parent 13f370ceb9
commit b1aac9f56d

View File

@@ -667,7 +667,8 @@ class FittingView(d.Display):
else:
if mod in fit.modules:
mainMod = mod
if mainMod is None and len(selection) > 0:
# Fall back to first selected module only if position is -1
elif len(selection) > 0:
mainMod = selection[0]
menu = ContextMenu.getMenu(mainMod, selection, *contexts)