[Commits] [SCM] claws branch, master, updated. 3.17.4-72-gc67b380f1

paul at claws-mail.org paul at claws-mail.org
Mon Nov 18 13:07:53 CET 2019


The branch, master has been updated
       via  c67b380f102cb8e056db83043ee26a1747ccd0c0 (commit)
      from  00e24331e85b072bab1eb098c75bbd645ee5e06a (commit)

Summary of changes:
 src/compose.c | 8 +++++++-
 src/compose.h | 3 ++-
 2 files changed, 9 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit c67b380f102cb8e056db83043ee26a1747ccd0c0
Author: Paul <paul at claws-mail.org>
Date:   Mon Nov 18 13:07:48 2019 +0000

    when user cancels the signing passphrase dialogue, don't bother the user with an "error" dialogue

diff --git a/src/compose.c b/src/compose.c
index fc89629e3..7a0ab8302 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5274,6 +5274,9 @@ static void _display_queue_error(ComposeQueueResult val)
 			alertpanel_error(_("Could not queue message for sending:\n\n"
 						"Couldn't get recipient encryption key."));
 			break;
+		case COMPOSE_QUEUE_SIGNING_CANCELLED:
+			debug_print("signing cancelled\n");
+			break;
 		default:
 			/* unhandled error */
 			debug_print("oops, unhandled compose_queue() return value %d\n",
@@ -5912,7 +5915,10 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
 			compose->account, from_addr)) {
 			g_free(from_name);
 			g_free(from_addr);
-			return COMPOSE_QUEUE_ERROR_SIGNING_FAILED;
+			if (!privacy_peek_error())
+				return COMPOSE_QUEUE_SIGNING_CANCELLED;
+			else
+				return COMPOSE_QUEUE_ERROR_SIGNING_FAILED;
 	}
 	g_free(from_name);
 	g_free(from_addr);
diff --git a/src/compose.h b/src/compose.h
index d0d920aee..6fd032a4a 100644
--- a/src/compose.h
+++ b/src/compose.h
@@ -86,7 +86,8 @@ typedef enum
 	COMPOSE_QUEUE_ERROR_SIGNING_FAILED = -3,
 	COMPOSE_QUEUE_ERROR_ENCRYPT_FAILED = -4,
 	COMPOSE_QUEUE_ERROR_CHAR_CONVERSION = -5,
-	COMPOSE_QUEUE_ERROR_NO_ENCRYPTION_KEY = -6
+	COMPOSE_QUEUE_ERROR_NO_ENCRYPTION_KEY = -6,
+	COMPOSE_QUEUE_SIGNING_CANCELLED = -7
 } ComposeQueueResult;
 
 typedef enum {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list