diff --git a/ChangeLog b/ChangeLog index cc55a0d5c2..c5a644c3e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-29 Tambet Ingo + + * system-settings/plugins/ifcfg-suse/nm-suse-connection.c + (file_changed): Fix a bug where suse system settings plugin didn't + update the connections automatically when the files changed. + 2008-05-28 Dan Williams Revert r3697 (adhoc-create property patch); it's the wrong way to do this. diff --git a/system-settings/plugins/ifcfg-suse/nm-suse-connection.c b/system-settings/plugins/ifcfg-suse/nm-suse-connection.c index b65a485be5..0929ac7517 100644 --- a/system-settings/plugins/ifcfg-suse/nm-suse-connection.c +++ b/system-settings/plugins/ifcfg-suse/nm-suse-connection.c @@ -38,14 +38,16 @@ file_changed (GFileMonitor *monitor, new_connection = parse_ifcfg (priv->iface, priv->dev_type); if (new_connection) { new_settings = nm_connection_to_hash (new_connection); - nm_exported_connection_update (exported, new_settings, NULL); + nm_connection_replace_settings (nm_exported_connection_get_connection (exported), new_settings); + nm_exported_connection_signal_updated (exported, new_settings); + g_hash_table_destroy (new_settings); g_object_unref (new_connection); } else - nm_exported_connection_delete (exported, NULL); + nm_exported_connection_signal_removed (exported); break; case G_FILE_MONITOR_EVENT_DELETED: - nm_exported_connection_delete (exported, NULL); + nm_exported_connection_signal_removed (exported); break; default: break;