Browse Source

Restore the cursor position after the context menu is closed

Fixes: lp:1696328
* https://bugs.launchpad.net/kicad/+bug/1696328
pull/7/merge
Maciej Suminski 8 years ago
parent
commit
2652cfeafd
  1. 2
      common/tool/tool_manager.cpp

2
common/tool/tool_manager.cpp

@ -665,6 +665,8 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
GetEditFrame()->PopupMenu( menu.get() );
m_menuActive = false;
m_viewControls->WarpCursor( cursor, true, false );
// If nothing was chosen from the context menu, we must notify the tool as well
if( menu->GetSelected() < 0 )
{

Loading…
Cancel
Save