[balsa] main-window: Fix the previous commit



commit f4ac3170f78be9ba07c9dc93282d164395a83838
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jan 7 11:51:04 2020 -0500

    main-window: Fix the previous commit

 src/main-window.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index 0ca705f5f..ad004e6b6 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2874,6 +2874,11 @@ bw_real_open_mbnode_idle_cb(BalsaWindowRealOpenMbnodeInfo * info)
     gint               page_num;
     LibBalsaCondition *filter;
 
+    /* Avoid recursive entry: */
+    if (info->opening)
+        return FALSE;
+    info->opening = TRUE;
+
     if (window == NULL) {
         g_free(info->message);
         g_object_unref(g_object_ref_sink(index));
@@ -2883,11 +2888,6 @@ bw_real_open_mbnode_idle_cb(BalsaWindowRealOpenMbnodeInfo * info)
         return FALSE;
     }
 
-    /* Avoid recursive entry: */
-    if (info->opening)
-        return FALSE;
-    info->opening = TRUE;
-
     balsa_window_decrease_activity(window, info->message);
     g_object_remove_weak_pointer(G_OBJECT(window),
                                  (gpointer *) &info->window);


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