Fix adding the filetype's default extension when using the Instant Save plugin (2885142).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4358 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
091bfac4ac
commit
e87dda5c74
@ -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,
|
||||
|
@ -250,7 +250,7 @@ static void instantsave_document_new_cb(GObject *obj, GeanyDocument *doc, gpoint
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user