Revision: 635 Author: ntrel Date: 2006-07-26 07:27:24 -0700 (Wed, 26 Jul 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=635&view=rev
Log Message: ----------- Don't add .c extension for All files filter. Only set open tool dialog path if it exists
Modified Paths: -------------- trunk/src/win32.c Modified: trunk/src/win32.c =================================================================== --- trunk/src/win32.c 2006-07-26 11:46:30 UTC (rev 634) +++ trunk/src/win32.c 2006-07-26 14:27:24 UTC (rev 635) @@ -110,7 +110,7 @@ of.nMaxFile = 2048; of.lpstrFileTitle = NULL; of.lpstrTitle = NULL; - of.lpstrDefExt = "c"; + of.lpstrDefExt = ""; if (file_open) { of.Flags = OFN_ALLOWMULTISELECT | OFN_FILEMUSTEXIST | OFN_EXPLORER; @@ -258,7 +258,7 @@
// cut the options from the command line field = g_strsplit(gtk_entry_get_text(GTK_ENTRY(item)), " ", 2); - if (field[0]) + if (field[0] && g_file_test(field[0], G_FILE_TEST_EXISTS)) { filename = g_find_program_in_path(field[0]); strcpy(fname, filename);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.