From fb88e0be5f426e8ef9a1d20a742d5a8cb6a85328 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Tue, 2 Nov 2004 03:02:51 +0000 Subject: Don't show error dialogs when status code is E_BOOK_ERROR_CANCELLED. We 2004-11-01 Sivaiah Nallagatla * gui/widgets/eab-gui-util.c (added_cb) (_modified_cb) : Don't show error dialogs when status code is E_BOOK_ERROR_CANCELLED. We don't wabt to show "Error adding contact, Cancelled" dialogs when user cancels duplicated contact detected dialog. svn path=/trunk/; revision=27790 --- addressbook/gui/widgets/eab-gui-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') 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); } -- cgit