Skip to content

Commit

Permalink
Merge pull request #2327 from rohit-n/qt-critical
Browse files Browse the repository at this point in the history
Qt: Check if game filename is null before loading it.
  • Loading branch information
lioncash committed Apr 26, 2015
2 parents 392b9ab + 10aa648 commit 3af11ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/DolphinQt/MainWindow.cpp
Expand Up @@ -160,7 +160,9 @@ void DMainWindow::DoStartPause()

void DMainWindow::OnOpen()
{
StartGame(ShowFileDialog());
QString filename = ShowFileDialog();
if (!filename.isNull())
StartGame(filename);
}

void DMainWindow::OnPlay()
Expand Down

0 comments on commit 3af11ef

Please sign in to comment.