diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index c5142fd12d..aef0f94cc8 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -1352,7 +1352,8 @@ void MainWindow::StateLoad() QString path = DolphinFileDialog::getOpenFileName(this, tr("Select a File"), QDir::currentPath(), tr("All Save States (*.sav *.s##);; All Files (*)")); - State::LoadAs(path.toStdString()); + if (!path.isEmpty()) + State::LoadAs(path.toStdString()); } void MainWindow::StateSave() @@ -1360,7 +1361,8 @@ void MainWindow::StateSave() QString path = DolphinFileDialog::getSaveFileName(this, tr("Select a File"), QDir::currentPath(), tr("All Save States (*.sav *.s##);; All Files (*)")); - State::SaveAs(path.toStdString()); + if (!path.isEmpty()) + State::SaveAs(path.toStdString()); } void MainWindow::StateLoadSlot()