From cfac02a00cd086f9efa8d83137bd0e7fe37217ab Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 18 Nov 2021 10:57:08 +0100 Subject: [PATCH] call-data: Fix assertion in notify handlers --- src/calls-ui-call-data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c index ca5a1cc..2c7a2b1 100644 --- a/src/calls-ui-call-data.c +++ b/src/calls-ui-call-data.c @@ -202,7 +202,7 @@ calls_ui_call_data_cui_call_interface_init (CuiCallInterface *iface) static void on_notify_state (CallsUiCallData *self) { - g_assert (CALLS_UI_CALL_DATA (self)); + g_assert (CALLS_IS_UI_CALL_DATA (self)); g_object_notify_by_pspec (G_OBJECT (self), props[PROP_STATE]); } @@ -211,7 +211,7 @@ on_notify_state (CallsUiCallData *self) static void on_notify_name (CallsUiCallData *self) { - g_assert (CALLS_UI_CALL_DATA (self)); + g_assert (CALLS_IS_UI_CALL_DATA (self)); g_object_notify_by_pspec (G_OBJECT (self), props[PROP_DISPLAY_NAME]); }