diff --git a/core/toolbars/utilities/style_manager.py b/core/toolbars/utilities/style_manager.py
index c0cb537ca..a42d41907 100644
--- a/core/toolbars/utilities/style_manager.py
+++ b/core/toolbars/utilities/style_manager.py
@@ -180,7 +180,7 @@ def _filter_styles(self):
if selected_stylegroup_name:
if filter_str:
filter_str += " AND "
- filter_str += f"idval = '{selected_stylegroup_name}'"
+ filter_str += f"category = '{selected_stylegroup_name}'"
model = self.style_mng_dlg.tbl_style.model()
model.setFilter(filter_str)
@@ -197,7 +197,7 @@ def _load_styles(self):
if selected_stylegroup_name:
# Apply filter based on the selected style group
- model.setFilter(f"idval = '{selected_stylegroup_name}'")
+ model.setFilter(f"category = '{selected_stylegroup_name}'")
model.select()
# Check for any errors
@@ -250,7 +250,7 @@ def _check_style_exists(self, dialog_create):
if row_idval:
dialog_create.idval.setStyleSheet(color)
- dialog_create.idval.setToolTip("Idval already exists")
+ dialog_create.idval.setToolTip("Category already exists")
has_error = True
else:
dialog_create.idval.setStyleSheet("")
diff --git a/core/ui/toolbars/utilities/style_manager.ui b/core/ui/toolbars/utilities/style_manager.ui
index 04a7414a7..439aff1c1 100644
--- a/core/ui/toolbars/utilities/style_manager.ui
+++ b/core/ui/toolbars/utilities/style_manager.ui
@@ -37,7 +37,7 @@
-
- Filter by: Layer name
+ Filter by: layername
@@ -62,6 +62,12 @@
0
+
+
+ 150
+ 0
+
+
@@ -168,6 +174,13 @@
+ -
+
+
+ Filter by: Category
+
+
+