From f5f84595d5bfffb65d80f22cde744be956386aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Tue, 19 Nov 2024 11:48:21 +0100 Subject: [PATCH] SettingsEntriesModel: qml warnings fixed --- ui/app/AppLayouts/Profile/helpers/SettingsEntriesModel.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/app/AppLayouts/Profile/helpers/SettingsEntriesModel.qml b/ui/app/AppLayouts/Profile/helpers/SettingsEntriesModel.qml index 350f66989e..6522875a33 100644 --- a/ui/app/AppLayouts/Profile/helpers/SettingsEntriesModel.qml +++ b/ui/app/AppLayouts/Profile/helpers/SettingsEntriesModel.qml @@ -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)