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)
|
void GameList::keyReleaseEvent(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
if (event->key() == Qt::Key_Return)
|
if (event->key() == Qt::Key_Return && GetSelectedGame() != nullptr)
|
||||||
emit GameSelected();
|
emit GameSelected();
|
||||||
else
|
else
|
||||||
QStackedWidget::keyReleaseEvent(event);
|
QStackedWidget::keyReleaseEvent(event);
|
||||||
|
|
Loading…
Reference in New Issue