[Commits] [SCM] claws branch, master, updated. 4.3.0-19-g69bb4836e

paul at claws-mail.org paul at claws-mail.org
Mon Jul 22 09:19:55 UTC 2024


The branch, master has been updated
       via  69bb4836e45cdda6993ff0afc71b6a0cddf0f780 (commit)
      from  4035a93ff1263a409ff92c4de7fe079972f48aad (commit)

Summary of changes:
 src/prefs_migration.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 69bb4836e45cdda6993ff0afc71b6a0cddf0f780
Author: Paul <paul at claws-mail.org>
Date:   Mon Jul 22 10:19:47 2024 +0100

    fix bug 4818, 'Your Claws Mail configuration is from a newer...' dialog is shown more than once'

diff --git a/src/prefs_migration.c b/src/prefs_migration.c
index 7581e7ef2..072b05e3e 100644
--- a/src/prefs_migration.c
+++ b/src/prefs_migration.c
@@ -36,10 +36,11 @@
 #include "alertpanel.h"
 
 static gint starting_config_version = 0;
+static gboolean version_check_warning_shown = FALSE;
 
 gboolean _version_check(gint ver)
 {
-	if (ver > CLAWS_CONFIG_VERSION) {
+	if (ver > CLAWS_CONFIG_VERSION && !version_check_warning_shown) {
 		gchar *msg;
 		gchar *markup;
 		AlertValue av;
@@ -66,6 +67,8 @@ gboolean _version_check(gint ver)
 		if (av != G_ALERTDEFAULT)
 			return FALSE; /* abort startup */
 
+		version_check_warning_shown = TRUE;
+
 		return TRUE; /* hic sunt dracones */
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list