Fixing selection issue on end-race screen (#3008)

* Small clarification to prevent build errors

Building outside of this directory prevents the executable from launching, this small addition can help prevent this issue from happening.

* Initial Commit

* Code cleanup

* Fix compile error

* Fix incorrect comparison

* Fix focusing erorr twice over

It may be worth making 'setfocusable' part of setvisible
This commit is contained in:
Ben Krajancic 2017-11-09 11:11:29 +11:00 committed by auriamg
parent 28f81b2a85
commit 53827cbe21

View File

@ -201,6 +201,7 @@ void RaceResultGUI::enableAllButtons()
// In case of a GP:
// ----------------
top->setVisible(false);
top->setFocusable(false);
middle->setText(_("Continue"));
middle->setVisible(true);
@ -209,6 +210,11 @@ void RaceResultGUI::enableAllButtons()
{
bottom->setText(_("Abort Grand Prix"));
bottom->setVisible(true);
bottom->setFocusable(true);
}
else
{
bottom->setFocusable(false);
}
middle->setFocusForPlayer(PLAYER_ID_GAME_MASTER);