flowbox: Don't emit selected-children-changed during destruction

https://bugzilla.gnome.org/show_bug.cgi?id=776012
This commit is contained in:
Debarshi Ray
2016-12-12 21:12:51 +01:00
parent e779ec4b1f
commit 3073419ff1

View File

@@ -3275,7 +3275,7 @@ gtk_flow_box_remove (GtkContainer *container,
if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box)))
gtk_widget_queue_resize (GTK_WIDGET (box));
if (was_selected)
if (was_selected && !gtk_widget_in_destruction (GTK_WIDGET (box)))
g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0);
}