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:
parent
20a3e236fa
commit
5bc6a55015
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue