Qt: Fix game restarting erroneously when selecting a BIOS

This commit is contained in:
Vicki Pfau 2017-01-31 09:58:55 -08:00
parent dc317e952e
commit 690eae25dd
1 changed files with 2 additions and 2 deletions

View File

@ -525,11 +525,11 @@ void GameController::loadBIOS(int platform, const QString& path) {
if (m_bios == path) {
return;
}
if (m_gameOpen && this->platform() == platform) {
if (!m_bios.isNull() && m_gameOpen && this->platform() == platform) {
closeGame();
m_bios = path;
openGame();
} else if (!m_gameOpen) {
} else if (!m_gameOpen || m_bios.isNull()) {
m_bios = path;
}
}