SF.net SVN: geany: [2425] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Mar 27 17:26:20 UTC 2008


Revision: 2425
          http://geany.svn.sourceforge.net/geany/?rev=2425&view=rev
Author:   ntrel
Date:     2008-03-27 10:26:09 -0700 (Thu, 27 Mar 2008)

Log Message:
-----------
Ignore documents with no absolute path when saving session files.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keyfile.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-03-27 17:16:53 UTC (rev 2424)
+++ trunk/ChangeLog	2008-03-27 17:26:09 UTC (rev 2425)
@@ -14,6 +14,8 @@
    Rename filename parameter utf8_filename.
  * src/keybindings.c:
    Check file on disk for changes (with timeout) when pressing a key.
+ * src/keyfile.c:
+   Ignore documents with no absolute path when saving session files.
 
 
 2008-03-26  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/keyfile.c
===================================================================
--- trunk/src/keyfile.c	2008-03-27 17:16:53 UTC (rev 2424)
+++ trunk/src/keyfile.c	2008-03-27 17:26:09 UTC (rev 2425)
@@ -109,7 +109,7 @@
 	for (i = 0; i < max; i++)
 	{
 		idx = document_get_n_idx(i);
-		if (idx >= 0 && doc_list[idx].file_name)
+		if (idx >= 0 && g_path_is_absolute(DOC_FILENAME(idx)))
 		{
 			gchar *fname;
 			filetype *ft = doc_list[idx].file_type;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list