Mercurial > hg > forks > geeqie
changeset 1868:2fb5a1f47789
Fix a remote command bug
author | Klaus Ethgen <Klaus@Ethgen.de> |
---|---|
date | Sun, 15 May 2011 19:44:04 +0100 |
parents | de64f1a472ad |
children | 12df95a27df1 |
files | src/remote.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remote.c Sat Apr 09 19:47:30 2011 +0100 +++ b/src/remote.c Sun May 15 19:44:04 2011 +0100 @@ -736,6 +736,7 @@ } i++; } + printf_term(N_("\n All other command line parameters are used as plain files if they exists.\n")); } GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors) @@ -752,7 +753,7 @@ { list = g_list_append(list, argv[i]); } - else if (errors) + else if (errors && !isfile(argv[i])) { *errors = g_list_append(*errors, argv[i]); } @@ -762,6 +763,13 @@ return list; } +/** + * \param arg_exec Binary (argv0) + * \param remote_list Evaluated and recognized remote commands + * \param path The current path + * \param cmd_list List of all non collections in Path + * \param collection_list List of all collections in argv + */ void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path, GList *cmd_list, GList *collection_list) {