From a7677798d1639a17108ee87419fcc27da70acd14 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 26 Jan 2022 08:27:31 +0100 Subject: [PATCH] dbus-manager: Fix critical when transforming call states Fixes c796df9260aa907a2daaf08a7d91f2213256f943 --- src/calls-dbus-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calls-dbus-manager.c b/src/calls-dbus-manager.c index 439835e..2511349 100644 --- a/src/calls-dbus-manager.c +++ b/src/calls-dbus-manager.c @@ -204,7 +204,7 @@ from_call_to_cui_state (GBinding *binding, GValue *to_value, gpointer unused) { - CallsCallState call_state = (CallsCallState) g_value_get_uint (from_value); + CallsCallState call_state = g_value_get_enum (from_value); CuiCallState cui_state = calls_call_state_to_cui_call_state (call_state); g_value_set_uint (to_value, cui_state);