fix warning dialogue when a re-edited draft compose window is closed after a send...
authorPaul <paul@claws-mail.org>
Mon, 10 Sep 2018 12:30:05 +0000 (13:30 +0100)
committerPaul <paul@claws-mail.org>
Mon, 10 Sep 2018 12:30:05 +0000 (13:30 +0100)
prevents unexpected loss of drafted message

src/compose.c

index 637bb942622f0a8e1293b7970f2aede02fca1a60..7aaa2b89f7b4a38cd6c73215fe76eba3704ead5e 100644 (file)
@@ -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,