Revision: 4358 http://geany.svn.sourceforge.net/geany/?rev=4358&view=rev Author: eht16 Date: 2009-10-25 11:43:21 +0000 (Sun, 25 Oct 2009)
Log Message: ----------- Fix adding the filetype's default extension when using the Instant Save plugin (2885142).
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/saveactions.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-10-23 16:18:05 UTC (rev 4357) +++ trunk/ChangeLog 2009-10-25 11:43:21 UTC (rev 4358) @@ -1,3 +1,10 @@ +2009-10-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * plugins/saveactions.c: + Fix adding the filetype's default extension when using the + Instant Save plugin (2885142). + + 2009-10-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/interface.c, src/ui_utils.h, src/prefs.c, src/keyfile.c,
Modified: trunk/plugins/saveactions.c =================================================================== --- trunk/plugins/saveactions.c 2009-10-23 16:18:05 UTC (rev 4357) +++ trunk/plugins/saveactions.c 2009-10-25 11:43:21 UTC (rev 4358) @@ -250,7 +250,7 @@ if (fd != -1) close(fd); /* close the returned file descriptor as we only need the filename */
- if (ft == NULL) + if (ft == NULL || ft->id == GEANY_FILETYPES_NONE) /* ft is NULL when a new file without template was opened, so use the * configured default file type */ ft = filetypes_lookup_by_name(instantsave_default_ft);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.