diff options
author | Jamie Murphy <hello@itsjamie.dev> | 2022-10-31 14:08:23 -0700 |
---|---|---|
committer | Jamie Murphy <hello@itsjamie.dev> | 2022-10-31 14:10:10 -0700 |
commit | 7023b111a1726e818ba895cda2bd3ed1ebd72713 (patch) | |
tree | e167924ac441a41cc47a9fc7d74cf6ab501711cf | |
parent | d04ca0ee676acea2906be52da7cbe0eb302d8b5d (diff) | |
download | gnome-todo-7023b111a1726e818ba895cda2bd3ed1ebd72713.tar.gz |
gtd-sidebar: Fix crash when deleting a ListBoxRow
I'm not exactly sure how GtkListBox works internally, but I assume
list_box_remove does a bit more then just unparent
-rw-r--r-- | src/plugins/task-lists-workspace/gtd-sidebar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/task-lists-workspace/gtd-sidebar.c b/src/plugins/task-lists-workspace/gtd-sidebar.c index 6556468a..0f5760bb 100644 --- a/src/plugins/task-lists-workspace/gtd-sidebar.c +++ b/src/plugins/task-lists-workspace/gtd-sidebar.c @@ -630,7 +630,7 @@ on_task_list_removed_cb (GtdManager *manager, if (!row) return; - gtk_widget_unparent (GTK_WIDGET (row)); + gtk_list_box_remove (listbox, GTK_WIDGET (row)); gtk_list_box_invalidate_filter (listbox); } |