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

Only reorder recent files on closing documents that have existed on

disk.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2644 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst aff4cdbc
......@@ -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>
......
......@@ -536,8 +536,8 @@ gboolean document_remove(guint page_num)
{
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);
......
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