[Commits] [SCM] claws branch, master, updated. 3.17.0-51-g8361f2b

claws at claws-mail.org claws at claws-mail.org
Mon Sep 10 14:30:11 CEST 2018


The branch, master has been updated
       via  8361f2b0d6c7ffe9d36f263cfec0d7d099acba9e (commit)
      from  9b21fc565b75fa36796deeec305890995101dee4 (commit)

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


- Log -----------------------------------------------------------------
commit 8361f2b0d6c7ffe9d36f263cfec0d7d099acba9e
Author: Paul <paul at claws-mail.org>
Date:   Mon Sep 10 13:30:05 2018 +0100

    fix warning dialogue when a re-edited draft compose window is closed after a send failure
    
    prevents unexpected loss of drafted message

diff --git a/src/compose.c b/src/compose.c
index 637bb94..7aaa2b8 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -10718,7 +10718,7 @@ static void compose_close_cb(GtkAction *action, gpointer data)
 			debug_print("couldn't lock mutex, probably sending\n");
 			return;
 		}
-		if (!reedit) {
+		if (!reedit || 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