Do not display Interactive Routing Settings dialog twice

The dialog was displayed due to a global TOOL_ACTION and a hotkey
assigned to a top menubar entry. Removing the hotkey from the menubar entry
is not ideal, but less irritating than a dialog showing up twice.
This commit is contained in:
Maciej Suminski 2018-06-15 17:12:54 +02:00
parent 583a9c08c0
commit 7b7355772e
1 changed files with 3 additions and 4 deletions

View File

@ -292,11 +292,10 @@ void prepareRouteMenu( wxMenu* aParentMenu )
aParentMenu->AppendSeparator();
text = AddHotkeyName( _( "&Interactive Router Settings..." ), g_Board_Editor_Hotkeys_Descr,
HK_ROUTING_OPTIONS );
AddMenuItem( aParentMenu, ID_MENU_INTERACTIVE_ROUTER_SETTINGS, text,
AddMenuItem( aParentMenu, ID_MENU_INTERACTIVE_ROUTER_SETTINGS,
_( "&Interactive Router Settings..." ),
_( "Configure interactive router" ),
KiBitmap( add_tracks_xpm ) ); // fixme: icon
KiBitmap( tools_xpm ) );
}