diff --git a/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml b/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml index 49ab2e15e5..83a99b02a2 100644 --- a/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml +++ b/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml @@ -173,7 +173,10 @@ ScrollViewKCM { section { property: "section" - delegate: Kirigami.ListSectionHeader { label: section } + delegate: Kirigami.ListSectionHeader { + label: section + height: implicitHeight + } } delegate: Kirigami.AbstractListItem { @@ -240,7 +243,6 @@ ScrollViewKCM { onSheetOpenChanged: { searchField.text = ""; if (sheetOpen) { - overlayModel.ready = true; searchField.forceActiveFocus(); } else { overlayModel.onlySuggestions = false; @@ -290,19 +292,8 @@ ScrollViewKCM { invalidateFilter(); } - // Delay the model filtering until `ready` is set - // FIXME: Workaround https://bugs.kde.org/show_bug.cgi?id=422289 - property bool ready: false - onReadyChanged: { - invalidateFilter(); - } - filterString: searchField.text.trim().toLowerCase() filterRowCallback: (source_row, source_parent) => { - if (!ready) { - return false; - } - var index = sourceModel.index(source_row, 0, source_parent); var hasSuggestion = sourceModel.data(index, RulesModel.SuggestedValueRole) != null;