aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-config.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-07-17 10:14:50 +0800
committerChris Toshok <toshok@src.gnome.org>2001-07-17 10:14:50 +0800
commit6f16d48483f45ad462599b0171bbc6ac4c2976d9 (patch)
tree6422490ba458a1e71fad81fb8734bf309b0f11a4 /addressbook/gui/component/addressbook-config.c
parent65f2e3d2a3de395977fbd39af0baac0b61504ee5 (diff)
downloadgsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar.gz
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar.bz2
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar.lz
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar.xz
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.tar.zst
gsoc2013-evolution-6f16d48483f45ad462599b0171bbc6ac4c2976d9.zip
[ Fix bug #4705 - LDAP storage gets saved with corrupted binddn]
2001-07-16 Chris Toshok <toshok@ximian.com> [ Fix bug #4705 - LDAP storage gets saved with corrupted binddn] * gui/component/addressbook-config.c (addressbook_dialog_apply): call addressbook_storage_write_sources here after we're done rebuilding them. * gui/component/addressbook-storage.c (addressbook_storage_clear_sources): don't write the source file here. (addressbook_storage_add_source): same. (addressbook_storage_remove_source): same. (addressbook_storage_write_sources): new function, write the source file out. (addressbook_source_copy): g_strdup the binddn so we don't end up free'ing it multiple times thanks to copies freeing theirs. * gui/component/addressbook-storage.h: add prototype for address_storage_write_sources. svn path=/trunk/; revision=11146
Diffstat (limited to 'addressbook/gui/component/addressbook-config.c')
-rw-r--r--addressbook/gui/component/addressbook-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index d23fb1ced2..77614a89f5 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -898,6 +898,8 @@ addressbook_dialog_apply (GnomePropertyBox *property_box, gint page_num, Address
AddressbookSource *source = (AddressbookSource*)gtk_clist_get_row_data (GTK_CLIST (dialog->clistSources), i);
addressbook_storage_add_source (addressbook_source_copy (source));
}
+
+ addressbook_storage_write_sources();
}
static void