all repos — mgba @ 3f921e8f2c1aa57d6f3131532efbbd90b0132245

mGBA Game Boy Advance Emulator

Qt: Fix locale being set to English on settings save (fixes #906)
Vicki Pfau vi@endrift.com
Thu, 14 Dec 2017 09:24:06 -0800
commit

3f921e8f2c1aa57d6f3131532efbbd90b0132245

parent

eb24b2515bc0e91ea55b12f767da7e9c6b74ebc1

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -8,6 +8,7 @@ - GBA Video: OBJWIN can change blend params after OBJ is drawn (fixes mgba.io/i/921)

- GBA Savedata: Fix crash when resizing flash - GB Memory: HDMAs should not start when LCD is off (fixes mgba.io/i/310) - GBA Cheats: Fix slide codes not initializing properly + - Qt: Fix locale being set to English on settings save (fixes mgba.io/i/906) Misc: - GBA: Improve multiboot image detection - GB MBC: Remove erroneous bank 0 wrapping
M src/platform/qt/SettingsView.cppsrc/platform/qt/SettingsView.cpp

@@ -174,7 +174,7 @@ continue;

} QLocale locale(name.remove(QString("%0-").arg(binaryName)).remove(".qm")); m_ui.languages->addItem(locale.nativeLanguageName(), locale); - if (locale == QLocale()) { + if (locale.bcp47Name() == QLocale().bcp47Name()) { m_ui.languages->setCurrentIndex(m_ui.languages->count() - 1); } }