Kaydet (Commit) aff4cdbc authored tarafından Nick Treleaven's avatar Nick Treleaven

Only save session documents that have existed on disk (don't save

documents with a filename set but have never been saved).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2643 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 73d81727
......@@ -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>
......
......@@ -152,7 +152,7 @@ void configuration_save_session_files(GKeyFile *config)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment