[Commits] [SCM] claws branch, master, updated. 3.17.5-10-g85c4fc730
paul at claws-mail.org
paul at claws-mail.org
Thu May 7 12:10:47 CEST 2020
The branch, master has been updated
via 85c4fc73014ea2f095056b7e91728f1380066915 (commit)
from 6054116feb38680c4482e49cafe90900b809ecae (commit)
Summary of changes:
src/foldersel.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 85c4fc73014ea2f095056b7e91728f1380066915
Author: Paul <paul at claws-mail.org>
Date: Thu May 7 11:10:41 2020 +0100
allow inheriting folder prefs/properties from the move/copy dialogue when creating new folders here
diff --git a/src/foldersel.c b/src/foldersel.c
index eedfd03e3..7d054d023 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -41,6 +41,7 @@
#include "inputdialog.h"
#include "folder.h"
#include "prefs_common.h"
+#include "folder_item_prefs.h"
enum {
FOLDERSEL_FOLDERNAME,
@@ -569,9 +570,12 @@ static void foldersel_new_folder(GtkButton *button, gpointer data)
return;
store = GTK_TREE_STORE(model);
- new_folder = input_dialog(_("New folder"),
- _("Input the name of new folder:"),
- _("NewFolder"));
+ new_folder = input_dialog_with_checkbtn(_("New folder"),
+ _("Input the name of new folder:"),
+ _("NewFolder"),
+ _("Inherit properties and processing rules from parent folder"),
+ &(prefs_common.inherit_folder_props));
+
if (!new_folder) return;
AUTORELEASE_STR(new_folder, {g_free(new_folder); return;});
@@ -605,6 +609,10 @@ static void foldersel_new_folder(GtkButton *button, gpointer data)
return;
}
+ if (prefs_common.inherit_folder_props) {
+ folder_item_prefs_copy_prefs(selected_item, new_item);
+ }
+
/* add new child */
foldersel_append_item(store, new_item, &new_child, &selected);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list