[evolution/gnome-3-4] Do not show cancelled errors from refresh_folders_exec()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Do not show cancelled errors from refresh_folders_exec()
- Date: Tue, 10 Jul 2012 12:13:00 +0000 (UTC)
commit 4a4dc3f1c147273c555b7792eb20e43dcc53d4e6
Author: Milan Crha <mcrha redhat com>
Date: Tue Jul 10 14:12:46 2012 +0200
Do not show cancelled errors from refresh_folders_exec()
mail/mail-send-recv.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 877c5cb..a2b6027 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -1046,7 +1046,8 @@ refresh_folders_exec (struct _refresh_folders_msg *m,
}
if (local_error != NULL) {
- g_warning ("Failed to refresh folders: %s", local_error->message);
+ if (!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Failed to refresh folders: %s", local_error->message);
g_clear_error (&local_error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]