SF.net SVN: geany: [2644] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Jun 5 12:36:50 UTC 2008


Revision: 2644
          http://geany.svn.sourceforge.net/geany/?rev=2644&view=rev
Author:   ntrel
Date:     2008-06-05 05:36:48 -0700 (Thu, 05 Jun 2008)

Log Message:
-----------
Only reorder recent files on closing documents that have existed on
disk.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-06-05 12:21:50 UTC (rev 2643)
+++ trunk/ChangeLog	2008-06-05 12:36:48 UTC (rev 2644)
@@ -6,6 +6,9 @@
  * src/keyfile.c:
    Only save session documents that have existed on disk (don't save
    documents with a filename set but have never been saved).
+ * src/document.c:
+   Only reorder recent files on closing documents that have existed on
+   disk.
 
 
 2008-06-04  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2008-06-05 12:21:50 UTC (rev 2643)
+++ trunk/src/document.c	2008-06-05 12:36:48 UTC (rev 2644)
@@ -536,8 +536,8 @@
 		{
 			return FALSE;
 		}
-		/* TODO: check g_file_test(documents[idx]->real_name, G_FILE_TEST_EXISTS) */
-		if (! main_status.closing_all && g_path_is_absolute(DOC_FILENAME(idx)))
+		/* Checking real_path makes it likely the file exists on disk */
+		if (! main_status.closing_all && documents[idx]->real_path != NULL)
 			ui_add_recent_file(documents[idx]->file_name);
 
 		notebook_remove_page(page_num);


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