all repos — mgba @ b527b7ff9bd48c48158028d2110668e445d8f12c

mGBA Game Boy Advance Emulator

Qt: Ensure non-present MRU items are removed (fixes #2000)
Vicki Pfau vi@endrift.com
Sat, 02 Jan 2021 20:39:58 -0800
commit

b527b7ff9bd48c48158028d2110668e445d8f12c

parent

466e0c5efac74515a4c153c8fe9d2bedaae72389

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

jump to
M src/platform/qt/ConfigController.cppsrc/platform/qt/ConfigController.cpp

@@ -272,6 +272,9 @@ if (i >= MRU_LIST_SIZE) {

break; } } + for (; i < MRU_LIST_SIZE; ++i) { + m_settings->remove(QString::number(i)); + } m_settings->endGroup(); }