commit 82c164bb8b0b88b3f04ca114a68e560866a9e818
parent 2d4362f17612b1252752307c13cd256683b6262b
Author: Paul <paul@claws-mail.org>
Date: Sun, 22 May 2022 09:38:23 +0100
fix bug 4584, 'Compose window causing Claws to terminate unexpectedly'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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"),