ui/gtk/list.c

changeset 862
670b2c03413f
parent 861
34b07b18b3e1
child 889
5be43605226f
--- a/ui/gtk/list.c	Sat Oct 18 10:17:59 2025 +0200
+++ b/ui/gtk/list.c	Sat Oct 18 12:23:52 2025 +0200
@@ -2579,6 +2579,10 @@
             item.label = strdup(elm);
         }
         
+        if(item.label == NULL && index == -1 && sublist->header) {
+            item.label = strdup(sublist->header);
+        }
+        
         // create listbox item
         GtkWidget *row = gtk_list_box_row_new();
 #if GTK_CHECK_VERSION(4, 0, 0)

mercurial