From 10aa6488d9126ef7f0e18ce500051ad2fe98b1f0 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Sun, 26 Apr 2015 10:36:12 -0500 Subject: [PATCH] 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. --- Source/Core/DolphinQt/MainWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 90fa48abb1..0835f9044b 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -160,7 +160,9 @@ void DMainWindow::DoStartPause() void DMainWindow::OnOpen() { - StartGame(ShowFileDialog()); + QString filename = ShowFileDialog(); + if (!filename.isNull()) + StartGame(filename); } void DMainWindow::OnPlay()