Revision: 384 Author: ntrel Date: 2006-05-31 14:17:30 -0700 (Wed, 31 May 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=384&view=rev
Log Message: ----------- Discard old session files also for unsaved documents
Modified Paths: -------------- trunk/ChangeLog trunk/src/keyfile.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-05-31 14:53:27 UTC (rev 383) +++ trunk/ChangeLog 2006-05-31 21:17:30 UTC (rev 384) @@ -2,6 +2,7 @@
* scintilla/PlatGTK.cxx: Backport a Scintilla fix for crashes with recent GTK+ font issue. + * src/keyfile.c: Discard old session files also for unsaved documents.
2006-05-30 Nick Treleaven nick.treleaven@btinternet.com
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2006-05-31 14:53:27 UTC (rev 383) +++ trunk/src/keyfile.c 2006-05-31 21:17:30 UTC (rev 384) @@ -162,14 +162,11 @@ j++; } } - // if open tabs less than GEANY_SESSION_FILES, delete existing saved entries in the list - if (max < GEANY_SESSION_FILES) + // if open filenames less than GEANY_SESSION_FILES, delete existing saved entries in the list + for(i = j; i < GEANY_SESSION_FILES; i++) { - for(i = max; i < GEANY_SESSION_FILES; i++) - { - g_snprintf(entry, 13, "FILE_NAME_%d", i); - g_key_file_set_string(config, "files", entry, ""); - } + g_snprintf(entry, 13, "FILE_NAME_%d", i); + g_key_file_set_string(config, "files", entry, ""); }
// write the file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.