# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1730097707 -3600
# Node ID 16c8b9ea3aa34e9cca458a121b13c66d949c93b5
# Parent  681b930abe8475fa710b5bfd65b5f3e4ef261808
allow ui_list_update called with unbound lists

diff -r 681b930abe84 -r 16c8b9ea3aa3 ui/common/types.c
--- a/ui/common/types.c	Sun Oct 27 12:08:10 2024 +0100
+++ b/ui/common/types.c	Mon Oct 28 07:41:47 2024 +0100
@@ -159,7 +159,9 @@
 }
 
 UIEXPORT void ui_list_update(UiList *list) {
-    list->update(list, 0);
+    if(list->update) {
+        list->update(list, 0);
+    }
 }
 
 void ui_list_addobsv(UiList *list, ui_callback f, void *data) {