mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Qt: Check if game filename is null before loading.
This is so that the error message box does not appear if the user simply cancels loading a game.
This commit is contained in:
parent
392b9abece
commit
10aa6488d9
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue