SettingsEntriesModel: qml warnings fixed

This commit is contained in:
Michał Cieślak 2024-11-19 11:48:21 +01:00 committed by Michał
parent 1c255175ab
commit f5f84595d5
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ SortFilterProxyModel {
// Update model after retranslation
onEntriesChanged: {
if (baseModel.count === 0)
return
entries.forEach((elem, index) => {
baseModel.setProperty(index, "text", elem.text)