Qt: Fix build with Qt <5.4
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Aug 2016 22:46:51 -0700
1 files changed,
4 insertions(+),
3 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -326,14 +326,15 @@ openGame(true);
} 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; }