[evolution] Destroy associated activity before Folder Properties dialog is shown



commit 369a01b037a60ba227a9ecc70f052f3360c1f407
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jan 13 16:14:25 2017 +0100

    Destroy associated activity before Folder Properties dialog is shown
    
    Thus it'll not be shown in the status bar until the dialog is closed.

 src/mail/em-folder-properties.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mail/em-folder-properties.c b/src/mail/em-folder-properties.c
index 446f39e..7bea11b 100644
--- a/src/mail/em-folder-properties.c
+++ b/src/mail/em-folder-properties.c
@@ -1283,6 +1283,10 @@ emfp_prepare_dialog_data_done (gpointer ptr)
 
        g_return_if_fail (context != NULL);
 
+       /* Destroy the activity before the dialog is shown, otherwise
+          it's on the status bar until the dialog is closed. */
+       g_clear_object (&context->activity);
+
        if (context->folder && !context->cancelled)
                emfp_dialog_run (context);
 


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