Restore the cursor position after the context menu is closed

Fixes: lp:1696328
* https://bugs.launchpad.net/kicad/+bug/1696328
This commit is contained in:
Maciej Suminski 2017-07-28 10:55:34 +02:00
parent 7399759b3b
commit 2652cfeafd
1 changed files with 2 additions and 0 deletions

View File

@ -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 )
{