mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-15 12:55:36 +00:00
ofono: correct variant format confusion
this fixes the crash observed when starting the modem (#248)
This commit is contained in:
parent
edc1089224
commit
a4851c4fdc
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ modem_property_changed_cb (GDBOModem *modem,
|
||||||
modem_name = g_object_get_data (G_OBJECT (modem),
|
modem_name = g_object_get_data (G_OBJECT (modem),
|
||||||
"calls-modem-name");
|
"calls-modem-name");
|
||||||
|
|
||||||
|
/* PropertyChanged gives us a variant gvariant containing a string array,
|
||||||
|
but modem_check_ifaces expects the inner string array gvariant */
|
||||||
|
value = g_variant_get_variant(value);
|
||||||
modem_check_ifaces (self, modem, modem_name, value);
|
modem_check_ifaces (self, modem, modem_name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue