[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-32-ga44911ee3

paul at claws-mail.org paul at claws-mail.org
Sun May 22 10:39:06 CEST 2022


The branch, gtk2 has been updated
       via  a44911ee34ee2f80d78885e39eb2477486b4c060 (commit)
      from  3219986926a5724a14359f7bff379fafb99e2ca2 (commit)

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


- Log -----------------------------------------------------------------
commit a44911ee34ee2f80d78885e39eb2477486b4c060
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 d6e30c9f1..d29eb91cf 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -10774,7 +10774,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?"),
 				 _("_Discard"), _("_Save to Drafts"), GTK_STOCK_CANCEL,

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list