Qt: Ensure non-present MRU items are removed (fixes #2000)

This commit is contained in:
Vicki Pfau 2021-01-02 20:39:58 -08:00
parent 466e0c5efa
commit b527b7ff9b
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ void ConfigController::setMRU(const QList<QString>& mru) {
break;
}
}
for (; i < MRU_LIST_SIZE; ++i) {
m_settings->remove(QString::number(i));
}
m_settings->endGroup();
}