aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/bbdb/ChangeLog7
-rw-r--r--plugins/bbdb/bbdb.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/plugins/bbdb/ChangeLog b/plugins/bbdb/ChangeLog
index 7ec0732ef3..471a76aa21 100644
--- a/plugins/bbdb/ChangeLog
+++ b/plugins/bbdb/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-29 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #497928
+
+ * bbdb.c: (source_changed_cb), (gaim_source_changed_cb):
+ Set URI to empty string when user deletes previously selected source.
+
2008-09-19 Sankar P <psankar@novell.com>
License Changes
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index 73f02846a0..a2ec60d243 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -435,12 +435,11 @@ source_changed_cb (ESourceComboBox *source_combo_box,
GError *error = NULL;
source = e_source_combo_box_get_active (source_combo_box);
- g_return_if_fail (source != NULL);
gconf_client_set_string (
stuff->target->gconf,
GCONF_KEY_WHICH_ADDRESSBOOK,
- e_source_get_uri (source), &error);
+ source ? e_source_get_uri (source) : "", &error);
if (error != NULL) {
g_warning ("%s", error->message);
@@ -456,12 +455,11 @@ gaim_source_changed_cb (ESourceComboBox *source_combo_box,
GError *error = NULL;
source = e_source_combo_box_get_active (source_combo_box);
- g_return_if_fail (source != NULL);
gconf_client_set_string (
stuff->target->gconf,
GCONF_KEY_WHICH_ADDRESSBOOK_GAIM,
- e_source_get_uri (source), &error);
+ source ? e_source_get_uri (source) : "", &error);
if (error != NULL) {
g_warning ("%s", error->message);