[utilities/kdebugsettings] src/kcm/ui: Fix select type
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5ba75dbf3c7e440cb9f67a85d752749a82093330 by Laurent Montel.
Committed on 10/08/2026 at 17:35.
Pushed by mlaurent into branch 'master'.
Fix select type
The type is lost because CategoryComboBox.qml reads currentValue inside onCurrentIndexChanged, and at that point currentValue still holds the previous selection.
Replaced by onCurrentIndexChanged fix it
M +2 -2 src/kcm/ui/CategoryComboBox.qml
https://invent.kde.org/utilities/kdebugsettings/-/commit/5ba75dbf3c7e440cb9f67a85d752749a82093330
diff --git a/src/kcm/ui/CategoryComboBox.qml b/src/kcm/ui/CategoryComboBox.qml
index 4cc445f4..560eb3b0 100644
--- a/src/kcm/ui/CategoryComboBox.qml
+++ b/src/kcm/ui/CategoryComboBox.qml
@@ -22,8 +22,8 @@ QQC2.ComboBox {
}
}
- onCurrentIndexChanged: {
- if (syncLoggingTypeFromSelection && currentIndex >= 0 && currentValue !== undefined) {
+ onActivated: {
+ if (syncLoggingTypeFromSelection) {
loggingType = currentValue
}
}