all repos — mgba @ 3dceea20cfa76b1aac5df816d8654efe218ea3f6

mGBA Game Boy Advance Emulator

Qt: Fix build with Qt <5.4
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Aug 2016 22:46:51 -0700
commit

3dceea20cfa76b1aac5df816d8654efe218ea3f6

parent

1afed20ccc6eb506657b947003168288c8a1deca

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/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; }