Fixed crash when pressing Up/Down in the GUI due to incorrect check for Navigation
This commit is contained in:
parent
979a94ae50
commit
ed876469c7
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ bool HandleNavigation(int direction)
|
|||
|
||||
if (focusTarget != nullptr)
|
||||
{
|
||||
if (activeWidget->getId().substr(0, 3) != "cbo" || activeWidget->getId().substr(0, 5) != "qscbo")
|
||||
if (activeWidget->getId().substr(0, 3) == "cbo" || activeWidget->getId().substr(0, 5) == "qscbo")
|
||||
{
|
||||
const auto dropdown = dynamic_cast<gcn::UaeDropDown *>(activeWidget);
|
||||
if (dropdown->isDroppedDown() && (direction == DIRECTION_UP || direction == DIRECTION_DOWN))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue