Qt: Fix "restart needed" dialog after first config (fixes #1601)

This commit is contained in:
Vicki Pfau 2019-12-20 21:10:29 -08:00
parent f9b1c960cb
commit b49f072c94
2 changed files with 6 additions and 2 deletions

View File

@ -102,6 +102,7 @@ Other fixes:
- Qt: Fix scrollbar arrows in memory view (fixes mgba.io/i/1558)
- Qt: Fix several cases where shader selections don't get saved
- Qt: Fix division by zero error in invalid TilePainter state
- Qt: Fix "restart needed" dialog after first config (fixes mgba.io/i/1601)
Misc:
- GB Memory: Support manual SRAM editing (fixes mgba.io/i/1580)
- SDL: Use controller GUID instead of name

View File

@ -472,9 +472,12 @@ void SettingsView::updateConfig() {
}
QVariant cameraDriver = m_ui.cameraDriver->itemData(m_ui.cameraDriver->currentIndex());
if (cameraDriver != m_controller->getQtOption("cameraDriver")) {
QVariant oldCameraDriver = m_controller->getQtOption("cameraDriver");
if (cameraDriver != oldCameraDriver) {
m_controller->setQtOption("cameraDriver", cameraDriver);
emit cameraDriverChanged();
if (cameraDriver.toInt() != static_cast<int>(InputController::CameraDriver::NONE) || !oldCameraDriver.isNull()) {
emit cameraDriverChanged();
}
}
QVariant camera = m_ui.camera->itemData(m_ui.camera->currentIndex());