diff options
author | Milan Crha <mcrha@redhat.com> | 2012-07-10 16:55:16 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-07-10 16:55:16 +0800 |
commit | 82e980001bdbc20996985f1ec33b968cd133d677 (patch) | |
tree | 3d4c5716baf62a80eba4485bb1baa0d4c24eb201 /mail/mail-send-recv.c | |
parent | c14ebe73581fba5afa527c188507d1d50b2ebdd7 (diff) | |
download | gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.gz gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.bz2 gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.lz gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.xz gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.zst gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.zip |
Always notify about finished updated_folders() call
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 1670cf04c2..3657cfdfda 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -1008,17 +1008,18 @@ refresh_folders_exec (struct _refresh_folders_msg *m, m->folders->pdata[i], 0, cancellable, &local_error); if (folder) { - /* FIXME Not passing a GError here. */ - camel_folder_synchronize_sync ( - folder, FALSE, cancellable, NULL); - camel_folder_refresh_info_sync (folder, cancellable, NULL); + if (camel_folder_synchronize_sync (folder, FALSE, cancellable, &local_error)) + camel_folder_refresh_info_sync (folder, cancellable, &local_error); g_object_unref (folder); - } else if (local_error != NULL) { + } + + if (local_error != NULL) { g_warning ("Failed to refresh folders: %s", local_error->message); g_clear_error (&local_error); } - if (g_cancellable_is_cancelled (m->info->cancellable)) + if (g_cancellable_is_cancelled (m->info->cancellable) || + g_cancellable_is_cancelled (cancellable)) break; if (m->info->state != SEND_CANCELLED) |