[Commits] [SCM] claws branch, master, updated. 4.2.0-94-g184ebced4

paul at claws-mail.org paul at claws-mail.org
Mon May 13 09:53:51 UTC 2024


The branch, master has been updated
       via  184ebced4509b93088b855140ed66fbb35956158 (commit)
      from  deb164157879263fa2c12607f5b538bb4256dd83 (commit)

Summary of changes:
 src/export.c |  4 ++--
 src/import.c | 18 +++++-------------
 2 files changed, 7 insertions(+), 15 deletions(-)


- Log -----------------------------------------------------------------
commit 184ebced4509b93088b855140ed66fbb35956158
Author: Paul <paul at claws-mail.org>
Date:   Mon May 13 10:53:46 2024 +0100

    when importing mbox don't suggest 'Inbox' if destination missing; standardise label on export error

diff --git a/src/export.c b/src/export.c
index d4ef25280..b2376224d 100644
--- a/src/export.c
+++ b/src/export.c
@@ -1,6 +1,6 @@
 /*
  * Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2024 the Claws Mail team and Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -195,7 +195,7 @@ static void export_ok_cb(GtkWidget *widget, gpointer data)
 	utf8mbox = gtk_entry_get_text(GTK_ENTRY(file_entry));
 
 	if (!utf8mbox || !*utf8mbox) {
-		alertpanel_error(_("Target mbox filename can't be left empty."));
+		alertpanel_error(_("Mbox file can't be left empty."));
 		gtk_widget_grab_focus(file_entry);
 		return;
 	}
diff --git a/src/import.c b/src/import.c
index b0c66373c..4cdb60db3 100644
--- a/src/import.c
+++ b/src/import.c
@@ -202,18 +202,14 @@ static void import_ok_cb(GtkWidget *widget, gpointer data)
 	cm_return_if_fail(destdir);
 
 	if (!*utf8mbox) {
-		alertpanel_error(_("Source mbox filename can't be left empty."));
+		alertpanel_error(_("Mbox file can't be left empty."));
 		gtk_widget_grab_focus(file_entry);
 		return;
 	}
 	if (!*destdir) {
-		if (alertpanel(_("Import mbox file"),
-						_("Destination folder is not set.\nImport mbox file to the Inbox folder?"),
-						NULL, _("_OK"), NULL, _("_Cancel"), NULL, NULL, ALERTFOCUS_FIRST)
-			== G_ALERTALTERNATE) {
-			gtk_widget_grab_focus(dest_entry);
-			return;
-		}
+		alertpanel_error(_("Destination folder can't be left empty."));
+		gtk_widget_grab_focus(dest_entry);
+		return;
 	}
 
 	mbox = g_filename_from_utf8(utf8mbox, -1, NULL, NULL, NULL);
@@ -222,11 +218,7 @@ static void import_ok_cb(GtkWidget *widget, gpointer data)
 		mbox = g_strdup(utf8mbox);
 	}
 
-	if (!*destdir) {
-		dest = folder_find_item_from_path(INBOX_DIR);
-	} else {
-		dest = folder_find_item_from_identifier(destdir);
-	}
+	dest = folder_find_item_from_identifier(destdir);
 
 	if (!dest) {
 		alertpanel_error(_("Can't find the destination folder."));

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list