[Commits] [SCM] claws branch, master, updated. 4.1.0-24-g82c164bb8

paul at claws-mail.org paul at claws-mail.org
Sun May 22 10:38:27 CEST 2022


The branch, master has been updated
       via  82c164bb8b0b88b3f04ca114a68e560866a9e818 (commit)
      from  2d4362f17612b1252752307c13cd256683b6262b (commit)

Summary of changes:
 src/compose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 82c164bb8b0b88b3f04ca114a68e560866a9e818
Author: Paul <paul at claws-mail.org>
Date:   Sun May 22 09:38:23 2022 +0100

    fix bug 4584, 'Compose window causing Claws to terminate unexpectedly'

diff --git a/src/compose.c b/src/compose.c
index 60443a8aa..236a045a9 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -10746,7 +10746,7 @@ static void compose_close_cb(GtkAction *action, gpointer data)
 			debug_print("couldn't lock mutex, probably sending\n");
 			return;
 		}
-		if (!reedit || compose->folder->stype == F_DRAFT) {
+		if (!reedit || (compose->folder != NULL &&compose->folder->stype == F_DRAFT)) {
 			val = alertpanel(_("Discard message"),
 				 _("This message has been modified. Discard it?"),
 				 NULL, _("_Discard"), NULL, _("_Save to Drafts"), NULL, _("_Cancel"),

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list