[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-59-gf22da497d

paul at claws-mail.org paul at claws-mail.org
Fri Aug 18 06:43:44 UTC 2023


The branch, gtk2 has been updated
       via  f22da497d13ebb418c6212f66d8808a920ff1ba7 (commit)
      from  1d3ac268c9ff16d12e58460306a1f278248ec9d0 (commit)

Summary of changes:
 src/compose.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit f22da497d13ebb418c6212f66d8808a920ff1ba7
Author: Paul <paul at claws-mail.org>
Date:   Fri Aug 18 07:42:37 2023 +0100

    when redirecting, disable queueing because re-editing a redirected msg allows changing it. Also disable the Attachments context menu so that it is not possible to remove an attachment from a redirected msg

diff --git a/src/compose.c b/src/compose.c
index 263be8f8e..f9e9854d3 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2599,11 +2599,11 @@ Compose *compose_redirect(PrefsAccount *account, MsgInfo *msginfo,
 
 	compose_colorize_signature(compose);
 
-	
 	cm_menu_set_sensitive_full(compose->ui_manager, "Popup/Compose/Add", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Popup/Compose/Remove", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Popup/Compose/Properties", FALSE);
 
+	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/SendLater", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/Save", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/InsertFile", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/AttachFile", FALSE);
@@ -2614,6 +2614,8 @@ Compose *compose_redirect(PrefsAccount *account, MsgInfo *msginfo,
 	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Tools/ShowRuler", FALSE);
 	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Tools/Actions", FALSE);
 	
+	if (compose->toolbar->sendl_btn)
+		gtk_widget_set_sensitive(compose->toolbar->sendl_btn, FALSE);
 	if (compose->toolbar->draft_btn)
 		gtk_widget_set_sensitive(compose->toolbar->draft_btn, FALSE);
 	if (compose->toolbar->insert_btn)
@@ -10184,7 +10186,8 @@ static gboolean attach_button_pressed(GtkWidget *widget, GdkEventButton *event,
 	gint attach_nr_selected;
 	GtkTreePath *path;
 	
-	if (!event) return FALSE;
+	if (!event || compose->redirect_filename != NULL)
+		return FALSE;
 
 	if (event->button == 3) {
 		attach_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget));

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list