Merge pull request #6272 from JosJuice/qt-no-selected-game
DolphinQt2: Don't crash when trying to play without a game selected
This commit is contained in:
commit
c9b78e23a2
|
@ -340,10 +340,10 @@ void MainWindow::Play()
|
|||
}
|
||||
else
|
||||
{
|
||||
QString selection = m_game_list->GetSelectedGame()->GetFilePath();
|
||||
if (selection.length() > 0)
|
||||
QSharedPointer<GameFile> selection = m_game_list->GetSelectedGame();
|
||||
if (selection)
|
||||
{
|
||||
StartGame(selection);
|
||||
StartGame(selection->GetFilePath());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue