Merge pull request #6099 from leoetlino/activate
Qt: Don't crash when pressing the Return key
This commit is contained in:
commit
53ccd41049
|
@ -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