From 3dceea20cfa76b1aac5df816d8654efe218ea3f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 31 Aug 2016 22:46:51 -0700 Subject: [PATCH] Qt: Fix build with Qt <5.4 --- src/platform/qt/GameController.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index b311b1699..97e90d063 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -326,14 +326,15 @@ void GameController::bootBIOS() { } void GameController::openGame(bool biosOnly) { + if (m_fname.isEmpty()) { + biosOnly = true; + } if (biosOnly && (!m_useBios || m_bios.isNull())) { return; } if (m_gameOpen) { // We need to delay if the game is still cleaning up - QTimer::singleShot(10, [this, biosOnly]() { - openGame(biosOnly); - }); + QTimer::singleShot(10, this, SLOT(openGame())); return; }