Changed behaviour so if the menu is closed without selection by pressing esc or clicking outside of the menu that the last highlighted option wont be selected

This commit is contained in:
Simon Wells 2015-10-08 02:32:36 +13:00
parent 20a3e236fa
commit 5bc6a55015
1 changed files with 2 additions and 0 deletions

View File

@ -812,6 +812,8 @@ BOARD_ITEM* SELECTION_TOOL::disambiguationMenu( GENERAL_COLLECTOR* aCollector )
// User has selected an item, so this one will be returned
if( id && ( *id > 0 ) )
current = ( *aCollector )[*id - 1];
else
current = NULL;
break;
}