From 8d95e86c8173772d56c3b0c31a5b185f9dbd8a50 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 14 Dec 2017 10:03:23 +0500 Subject: [PATCH] UI: StatisticsPage: Fix current unit after language change. --- src/ui/qml/pages/StatisticsPage.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/qml/pages/StatisticsPage.qml b/src/ui/qml/pages/StatisticsPage.qml index cc602802..27718d99 100644 --- a/src/ui/qml/pages/StatisticsPage.qml +++ b/src/ui/qml/pages/StatisticsPage.qml @@ -70,6 +70,9 @@ BasePage { currentIndex: firewallConf.trafUnit model: trafUnitNames + onModelChanged: { + currentIndex = firewallConf.trafUnit; + } onActivated: { firewallConf.trafUnit = index;