Qt: Fix build with Qt <5.4

This commit is contained in:
Jeffrey Pfau 2016-08-31 22:46:51 -07:00
parent 1afed20ccc
commit 3dceea20cf
1 changed files with 4 additions and 3 deletions

View File

@ -326,14 +326,15 @@ void GameController::bootBIOS() {
} }
void GameController::openGame(bool biosOnly) { void GameController::openGame(bool biosOnly) {
if (m_fname.isEmpty()) {
biosOnly = true;
}
if (biosOnly && (!m_useBios || m_bios.isNull())) { if (biosOnly && (!m_useBios || m_bios.isNull())) {
return; return;
} }
if (m_gameOpen) { if (m_gameOpen) {
// We need to delay if the game is still cleaning up // We need to delay if the game is still cleaning up
QTimer::singleShot(10, [this, biosOnly]() { QTimer::singleShot(10, this, SLOT(openGame()));
openGame(biosOnly);
});
return; return;
} }