Mercurial > geeqie.yaz
changeset 1727:548fddf5070a
ignored multiple directories specified on commandline
IMHO this was inconsistent - specifying one directory had completely
different effect than specifying two or more directories. Moreover,
it segfaulted.
Now only one directory is allowed.
author | nadvornik |
---|---|
date | Thu, 01 Oct 2009 18:40:34 +0000 |
parents | 2706c370fef7 |
children | 2ef885dfa3a7 |
files | src/main.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c Thu Oct 01 17:37:51 2009 +0000 +++ b/src/main.c Thu Oct 01 18:40:34 2009 +0000 @@ -130,6 +130,9 @@ static void parse_command_line_add_dir(const gchar *dir, gchar **path, gchar **file, GList **list) { +#if 0 + /* This is broken because file filter is not initialized yet. + */ GList *files; gchar *path_parsed; FileData *dir_fd; @@ -162,6 +165,9 @@ g_free(path_parsed); file_data_unref(dir_fd); +#else + DEBUG_1("multiple directories specified, ignoring: %s", dir); +#endif } static void parse_command_line_process_dir(const gchar *dir, gchar **path, gchar **file,