From: Colin Clark Date: Tue, 20 Apr 2021 10:14:33 +0000 (+0100) Subject: Do not open collection window for --list option and no files X-Git-Tag: v1.7~133 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=d533f6f86b0c8d3dd9d3076fd1c647d87e5b7a5b Do not open collection window for --list option and no files If the command line option --list is given, but there are no files listed on the command line, do not open a blank collection window --- diff --git a/src/main.c b/src/main.c index fbf8f2d0..f93f54d5 100644 --- a/src/main.c +++ b/src/main.c @@ -1131,7 +1131,7 @@ gint main(gint argc, gchar *argv[]) /* Files from multiple folders, or --list option given * then open an unnamed collection and insert all files */ - if ((command_line->cmd_list && !single_dir) || (command_line->startup_command_line_collection)) + if ((command_line->cmd_list && !single_dir) || (command_line->startup_command_line_collection && command_line->cmd_list)) { GList *work; CollectWindow *cw;