aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/eab-gui-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/eab-gui-util.c')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index a1715c86fd..a88bd4cf82 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -166,7 +166,7 @@ added_cb (EBook* book, EBookStatus status, EContact *contact,
{
gboolean is_list = GPOINTER_TO_INT (data);
- if (status != E_BOOK_ERROR_OK) {
+ if (status != E_BOOK_ERROR_OK && status != E_BOOK_ERROR_CANCELLED) {
eab_error_dialog (is_list ? _("Error adding list") : _("Error adding contact"), status);
}
}
@@ -177,7 +177,7 @@ modified_cb (EBook* book, EBookStatus status, EContact *contact,
{
gboolean is_list = GPOINTER_TO_INT (data);
- if (status != E_BOOK_ERROR_OK) {
+ if (status != E_BOOK_ERROR_OK && status != E_BOOK_ERROR_CANCELLED) {
eab_error_dialog (is_list ? _("Error modifying list") : _("Error modifying contact"),
status);
}