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



commit c6220308bffdfa16d79f94c911646eaa3f4049ed
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]