Skip to content
Permalink
Browse files
Merge pull request #6099 from leoetlino/activate
Qt: Don't crash when pressing the Return key
  • Loading branch information
leoetlino committed Oct 11, 2017
2 parents 8163fa1 + 468bf75 commit 53ccd41
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 53ccd41

Please sign in to comment.