Add missing PropertyChanged signal from manager interface
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 2 Jan 2010 20:55:50 +0000 (18:55 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 2 Jan 2010 22:30:55 +0000 (14:30 -0800)
src/profile.c

index 04e260c..b7dc96f 100644 (file)
@@ -77,6 +77,13 @@ static void offlinemode_changed(struct connman_profile *profile)
        connman_dbus_property_changed_basic(profile->path,
                                CONNMAN_PROFILE_INTERFACE, "OfflineMode",
                                DBUS_TYPE_BOOLEAN, &profile->offlinemode);
+
+       if (profile != default_profile)
+               return;
+
+       connman_dbus_property_changed_basic(CONNMAN_MANAGER_PATH,
+                               CONNMAN_MANAGER_INTERFACE, "OfflineMode",
+                               DBUS_TYPE_BOOLEAN, &profile->offlinemode);
 }
 
 connman_bool_t __connman_profile_get_offlinemode(void)