[evolution] Bug 719379 - Send/Receive dialog doesn't close on errors properly
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 719379 - Send/Receive dialog doesn't close on errors properly
- Date: Tue, 24 Jun 2014 09:45:42 +0000 (UTC)
commit 4cda728c0947ac35e52d4726e8eefc115c7b30be
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 24 11:44:06 2014 +0200
Bug 719379 - Send/Receive dialog doesn't close on errors properly
mail/mail-send-recv.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index d6b0edd..0bd074b 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -1242,15 +1242,19 @@ receive_update_got_folderinfo (GObject *source_object,
/* Ignore cancellations. */
if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
- g_warn_if_fail (info != NULL);
+ g_warn_if_fail (info == NULL);
g_error_free (local_error);
+ receive_done (send_info);
+
/* XXX Need to hand this off to an EAlertSink. */
} else if (local_error != NULL) {
- g_warn_if_fail (info != NULL);
+ g_warn_if_fail (info == NULL);
g_warning ("%s: %s", G_STRFUNC, local_error->message);
g_error_free (local_error);
+ receive_done (send_info);
+
/* CamelFolderInfo may be NULL even if no error occurred. */
} else if (info != NULL) {
GPtrArray *folders = g_ptr_array_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]