aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-component.c2
-rw-r--r--addressbook/gui/component/addressbook-config.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 1fa8c67f53..44076bfceb 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -220,6 +220,8 @@ delete_addressbook_cb (GtkWidget *widget, AddressbookComponent *comp)
e_source_group_remove_source (e_source_peek_group (selected_source), selected_source);
+ e_source_list_sync (priv->source_list, NULL);
+
/* FIXME: Remove local data */
}
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index e77273f0e5..71f768c5eb 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -260,8 +260,13 @@ dialog_to_source (AddressbookSourceDialog *dialog, ESource *source, gboolean tem
e_source_set_relative_uri (source, e_source_peek_uid (source));
}
- if (!temporary && !e_source_peek_group (source))
- e_source_group_add_source (dialog->source_group, source, -1);
+ if (!temporary) {
+ if (!e_source_peek_group (source))
+ e_source_group_add_source (dialog->source_group, source, -1);
+
+ e_source_list_sync (addressbook_component_peek_source_list (
+ addressbook_component_peek ()), NULL);
+ }
}
static ESource *