Merge pull request #2327 from rohit-n/qt-critical

Qt: Check if game filename is null before loading it.
This commit is contained in:
Lioncash 2015-04-26 16:18:20 -04:00
commit 3af11ef309
1 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,9 @@ void DMainWindow::DoStartPause()
void DMainWindow::OnOpen()
{
StartGame(ShowFileDialog());
QString filename = ShowFileDialog();
if (!filename.isNull())
StartGame(filename);
}
void DMainWindow::OnPlay()