aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-list-editor/e-contact-list-editor.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-28 00:04:57 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-28 00:04:57 +0800
commit566d861915da77e93b097a927a79f0130de8c535 (patch)
tree62226a7396bd10080d12f0d69262251aa45e34c2 /addressbook/gui/contact-list-editor/e-contact-list-editor.c
parent05933ef483635b84514eb285d4d839b87c3b3afb (diff)
downloadgsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar.gz
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar.bz2
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar.lz
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar.xz
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.tar.zst
gsoc2013-evolution-566d861915da77e93b097a927a79f0130de8c535.zip
Check for cancelled GIO operation error code too
Diffstat (limited to 'addressbook/gui/contact-list-editor/e-contact-list-editor.c')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index a6a9ceca15..dc51011327 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -1410,7 +1410,8 @@ contact_list_editor_contact_added (EABEditor *editor,
if (!error)
return;
- if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED))
+ if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
return;
eab_error_dialog (NULL, _("Error adding list"), error);
@@ -1424,7 +1425,8 @@ contact_list_editor_contact_modified (EABEditor *editor,
if (!error)
return;
- if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED))
+ if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
return;
eab_error_dialog (NULL, _("Error modifying list"), error);
@@ -1438,7 +1440,8 @@ contact_list_editor_contact_deleted (EABEditor *editor,
if (!error)
return;
- if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED))
+ if (g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_CANCELLED) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
return;
eab_error_dialog (NULL, _("Error removing list"), error);