mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix build with Qt <5.4
This commit is contained in:
parent
1afed20ccc
commit
3dceea20cf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue