mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
dummy-origin: Emit call-added only after adding to list
Otherwise we get incorrect values when calling calls_origin_get_calls ()
This commit is contained in:
parent
d15614a645
commit
8f8da42f76
1 changed files with 1 additions and 2 deletions
|
@ -130,13 +130,12 @@ add_call (CallsDummyOrigin *self, const gchar *number, gboolean inbound)
|
|||
g_assert (dummy_call != NULL);
|
||||
|
||||
call = CALLS_CALL (dummy_call);
|
||||
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
|
||||
g_signal_connect (call, "notify::state",
|
||||
G_CALLBACK (call_state_changed_cb),
|
||||
self);
|
||||
|
||||
self->calls = g_list_append (self->calls, dummy_call);
|
||||
|
||||
g_signal_emit_by_name (CALLS_ORIGIN (self), "call-added", call);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue