mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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:
@@ -160,7 +160,9 @@ void DMainWindow::DoStartPause()
|
||||
|
||||
void DMainWindow::OnOpen()
|
||||
{
|
||||
StartGame(ShowFileDialog());
|
||||
QString filename = ShowFileDialog();
|
||||
if (!filename.isNull())
|
||||
StartGame(filename);
|
||||
}
|
||||
|
||||
void DMainWindow::OnPlay()
|
||||
|
||||
Reference in New Issue
Block a user