From b623f5953691b2a0614e6f1f4def86bdbb9a4113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 8 Aug 2020 11:53:00 +0200 Subject: New upstream version 5.2.0Beta2.1 --- app/wlib/gtklib/list.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/wlib/gtklib/list.c') diff --git a/app/wlib/gtklib/list.c b/app/wlib/gtklib/list.c index 8e99efe..ac66aba 100644 --- a/app/wlib/gtklib/list.c +++ b/app/wlib/gtklib/list.c @@ -238,6 +238,7 @@ wIndex_t wListGetValues( if (bl->type == B_DROPLIST && bl->editted) { entry_value = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN( bl->widget)))); + item_data = NULL; inx = bl->last = -1; } else { inx = bl->last; @@ -404,6 +405,8 @@ void wListDelete( NULL, inx); gtk_list_store_remove(b->listStore, &iter); + + b->count--; } @@ -486,7 +489,7 @@ wIndex_t wListAddValue( wlibTreeViewAddRow(b, (char *)labelStr, bm, id_p); } - free(id_p->label); + //free(id_p->label); b->count++; b->recursion--; -- cgit v1.2.3