Revision: 3132 http://geany.svn.sourceforge.net/geany/?rev=3132&view=rev Author: ntrel Date: 2008-10-20 14:52:29 +0000 (Mon, 20 Oct 2008)
Log Message: ----------- Fix warning about ignoring command-line files.
Modified Paths: -------------- trunk/ChangeLog trunk/src/main.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-10-20 14:48:21 UTC (rev 3131) +++ trunk/ChangeLog 2008-10-20 14:52:29 UTC (rev 3132) @@ -7,6 +7,8 @@ is the first argument. * src/main.c: Add description for -P option. + * src/main.c: + Fix warning about ignoring command-line files.
2008-10-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2008-10-20 14:48:21 UTC (rev 3131) +++ trunk/src/main.c 2008-10-20 14:52:29 UTC (rev 3132) @@ -712,7 +712,8 @@
/* ATM when opening a project file any other filenames are ignored */ load_project_from_cl = (argc > 1) && g_str_has_suffix(argv[1], ".geany"); - g_print(_("Ignoring extra filenames after %s"), argv[1]); + if (load_project_from_cl && argc > 2) + g_print(_("Ignoring extra filenames after %s"), argv[1]);
if (load_project_from_cl || ! open_cl_files(argc, argv)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.