SF.net SVN: geany: [2643] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Jun 5 12:21:51 UTC 2008
Revision: 2643
http://geany.svn.sourceforge.net/geany/?rev=2643&view=rev
Author: ntrel
Date: 2008-06-05 05:21:50 -0700 (Thu, 05 Jun 2008)
Log Message:
-----------
Only save session documents that have existed on disk (don't save
documents with a filename set but have never been saved).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/keyfile.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-06-05 12:14:51 UTC (rev 2642)
+++ trunk/ChangeLog 2008-06-05 12:21:50 UTC (rev 2643)
@@ -3,6 +3,9 @@
* src/document.c:
Only set GeanyDocument::real_path when the file exists on disk -
after a successful save or open.
+ * 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).
2008-06-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/keyfile.c
===================================================================
--- trunk/src/keyfile.c 2008-06-05 12:14:51 UTC (rev 2642)
+++ trunk/src/keyfile.c 2008-06-05 12:21:50 UTC (rev 2643)
@@ -152,7 +152,7 @@
for (i = 0; i < max; i++)
{
idx = document_get_n_idx(i);
- if (idx >= 0 && g_path_is_absolute(DOC_FILENAME(idx)))
+ if (idx >= 0 && documents[idx]->real_path != NULL)
{
gchar *fname;
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