Commit decfaa41 authored by Jiří Klimeš's avatar Jiří Klimeš

libnm-glib: fix up nm_vpn_connection_get_banner()

We need to get current vpn_state in order for nm_vpn_connection_get_banner() to
work properly even if vpn_state had not been set before.
parent fa5465a7
......@@ -98,6 +98,10 @@ nm_vpn_connection_get_banner (NMVPNConnection *vpn)
g_return_val_if_fail (NM_IS_VPN_CONNECTION (vpn), NULL);
/* We need to update vpn_state first in case it's unknown. */
nm_vpn_connection_get_vpn_state (vpn);
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment