mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Qt: Don't crash when pressing the Return key
This commit is contained in:
parent
5f0de43828
commit
468bf75a43
@ -472,7 +472,7 @@ void GameList::ConsiderViewChange()
|
||||
}
|
||||
void GameList::keyReleaseEvent(QKeyEvent* event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Return)
|
||||
if (event->key() == Qt::Key_Return && GetSelectedGame() != nullptr)
|
||||
emit GameSelected();
|
||||
else
|
||||
QStackedWidget::keyReleaseEvent(event);
|
||||
|
Loading…
Reference in New Issue
Block a user