[balsa/69-resend-message: 7/13] sendmsg-window: Manage the "View" menu




commit 56067dc570b031b6679ce066e873e3e942a3015b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Mar 2 15:38:30 2022 -0500

    sendmsg-window: Manage the "View" menu

 src/sendmsg-window.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 063e5c1d7..23457ca0c 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -6101,6 +6101,9 @@ sw_entry_helper(GSimpleAction      * action,
                 BalsaSendmsg * bsmsg,
                 GtkWidget    * entry[])
 {
+    if (entry[0] == NULL)
+        return;
+
     if (g_variant_get_boolean(state)) {
         gtk_widget_show_all(entry[0]);
         gtk_widget_show_all(entry[1]);
@@ -6930,7 +6933,9 @@ sendmsg_window_new(SendType send_type)
     gtk_paned_add1(GTK_PANED(paned), create_info_pane(bsmsg));
     bsmsg->tree_view = NULL;
 
-    if (send_type != SEND_RESEND) {
+    if (send_type == SEND_RESEND) {
+        init_menus(bsmsg);
+    } else {
         /*
          * Set up the spell-checker language menu
          */


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