[Commits] [SCM] claws branch, master, updated. 3.14.1-193-g4f33789

wwp at claws-mail.org wwp at claws-mail.org
Mon Feb 13 18:56:51 CET 2017


The branch, master has been updated
       via  4f33789a0c3e9d93992f8d05425aa2fd408ca919 (commit)
      from  947c2b6e3ca32d89ec8b5b665cf5c68ec3012ca4 (commit)

Summary of changes:
 src/prefs_actions.c |    6 ------
 1 file changed, 6 deletions(-)


- Log -----------------------------------------------------------------
commit 4f33789a0c3e9d93992f8d05425aa2fd408ca919
Author: wwp <wwp at free.fr>
Date:   Mon Feb 13 18:55:28 2017 +0100

    Fix impossible action duplication: don't check for duplicate action name
    when saving/duplicating (we're not doing this elsewhere and I don't see
    the point in doing it here).

diff --git a/src/prefs_actions.c b/src/prefs_actions.c
index 6b232d9..eecde9b 100644
--- a/src/prefs_actions.c
+++ b/src/prefs_actions.c
@@ -611,12 +611,6 @@ static gint prefs_actions_clist_set_row(gint row)
 		return -1;
 	}
 
-	action_nb = prefs_actions_find_by_name(entry_text);
-	if ((action_nb != -1) && ((row == -1) || (row != action_nb + 1))) {
-		alertpanel_error(_("There is an action with this name already."));
-		return -1;
-	}
-	
 	strncpy(action, entry_text, PREFSBUFSIZE - 1);
 
 	while (strstr(action, "//")) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list