summaryrefslogtreecommitdiff
path: root/kde-plasma/systemsettings/files/systemsettings-5.24.5-fix-kcm-highlighting.patch
blob: 9f8d494ded69182eca2c06030699caca353e73eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 684004217fd28ba45f7ce61df5b3600398ee1108 Mon Sep 17 00:00:00 2001
From: Nicolas Fella <nicolas.fella@gmx.de>
Date: Thu, 12 May 2022 01:22:14 +0200
Subject: [PATCH] Fix current index in subcategory list

We bind currentIndex to activeSubCategoryRow, but when clicking on an item this binding is broken

Manually set the current index when the backend index changes

BUG: 453543

Fixed-In: 5.24.6
(cherry picked from commit 40b71c085f8ceddc9b3f44fa65d8bb48dad42b4a)
---
 sidebar/package/contents/ui/SubCategoryPage.qml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sidebar/package/contents/ui/SubCategoryPage.qml b/sidebar/package/contents/ui/SubCategoryPage.qml
index 756b2763..19b33142 100644
--- a/sidebar/package/contents/ui/SubCategoryPage.qml
+++ b/sidebar/package/contents/ui/SubCategoryPage.qml
@@ -140,6 +140,7 @@ Kirigami.ScrollablePage {
         Connections {
             target: systemsettings
             function onActiveSubCategoryRowChanged() {
+                subCategoryView.currentIndex = systemsettings.activeSubCategoryRow
                 if (systemsettings.activeSubCategoryRow >= 0) {
                     if (subCategoryView.count > 1) {
                         root.pageStack.push(subCategoryColumn);
-- 
GitLab