Skip to content
Permalink
Browse files
Merge pull request #6272 from JosJuice/qt-no-selected-game
DolphinQt2: Don't crash when trying to play without a game selected
  • Loading branch information
leoetlino committed Dec 25, 2017
2 parents b187d4c + ac18cff commit c9b78e2
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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
{

0 comments on commit c9b78e2

Please sign in to comment.