summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2017-06-04 17:22:35 -0700
committerGitHub <noreply@github.com>2017-06-04 17:22:35 -0700
commite27412d2c2e9201febf6d0b11f00782e77d21d0d (patch)
tree062d93a588a2448894b2069db08e66f20fc38eb0 /Source/Core/DolphinQt2/MainWindow.cpp
parent2f41345de24236db147b442c7ca41e39a98006bf (diff)
parente1ea6805a7d1f582c0028a86ca976d5b83548317 (diff)
Merge pull request #5538 from Starsam80/qt-remove-lastfilename
Qt: Remove booting from the last path
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index c003f5be04..3382cee4c0 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -213,11 +213,7 @@ void MainWindow::Play()
}
else
{
- QString last_path = Settings().GetLastGame();
- if (!last_path.isEmpty() && QFile::exists(last_path))
- StartGame(last_path);
- else
- Open();
+ Open();
}
}
}
@@ -304,7 +300,6 @@ void MainWindow::StartGame(const QString& path)
QMessageBox::critical(this, tr("Error"), tr("Failed to init core"), QMessageBox::Ok);
return;
}
- Settings().SetLastGame(path);
ShowRenderWidget();
emit EmulationStarted();