Qt: Fix game restarting erroneously when selecting a BIOS
Vicki Pfau vi@endrift.com
Tue, 31 Jan 2017 09:58:55 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -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; } }