Fix impossible action duplication: don't check for duplicate action name
authorwwp <wwp@free.fr>
Mon, 13 Feb 2017 17:55:28 +0000 (18:55 +0100)
committerwwp <wwp@free.fr>
Mon, 13 Feb 2017 17:55:28 +0000 (18:55 +0100)
when saving/duplicating (we're not doing this elsewhere and I don't see
the point in doing it here).

src/prefs_actions.c

index 6b232d9..eecde9b 100644 (file)
@@ -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, "//")) {