call-window: Remove display and holder in the right order

In the current order, the holder is finalized before we can get the
display, causing an error.  We just have to switch the two around
This commit is contained in:
Bob Ham
2018-10-10 09:12:11 +00:00
parent 224ab410d0
commit ef976cee04

View File

@@ -251,9 +251,9 @@ remove_call_holder (CallsCallWindow *self,
guint position,
CallsCallHolder *holder)
{
g_list_store_remove (self->call_holders, position);
gtk_container_remove (GTK_CONTAINER (self->call_stack),
GTK_WIDGET (calls_call_holder_get_display (holder)));
g_list_store_remove (self->call_holders, position);
update_visibility (self);
}