mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #2327 from rohit-n/qt-critical
Qt: Check if game filename is null before loading it.
This commit is contained in:
commit
3af11ef309
@ -160,7 +160,9 @@ void DMainWindow::DoStartPause()
|
|||||||
|
|
||||||
void DMainWindow::OnOpen()
|
void DMainWindow::OnOpen()
|
||||||
{
|
{
|
||||||
StartGame(ShowFileDialog());
|
QString filename = ShowFileDialog();
|
||||||
|
if (!filename.isNull())
|
||||||
|
StartGame(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DMainWindow::OnPlay()
|
void DMainWindow::OnPlay()
|
||||||
|
Loading…
Reference in New Issue
Block a user