[evolution/wip/webkit2] Bug 764062 - Send/Receive dialog can be left opened with empty content



commit 9e40fd994cb93bd5af98e2f14e7360258444c650
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 23 11:14:16 2016 +0100

    Bug 764062 - Send/Receive dialog can be left opened with empty content

 mail/mail-send-recv.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 79b9f82..2963693 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -1626,6 +1626,12 @@ send_receive (GtkWindow *parent,
 
        g_list_free (scan);
 
+       if (g_hash_table_size (data->active) == 0) {
+               if (data->gd)
+                       gtk_widget_destroy ((GtkWidget *) data->gd);
+               free_send_data ();
+       }
+
        return send_recv_dialog;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]