Fluid -c would destroy the file history every time it was run.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2011-08-18 13:43:39 +00:00
parent 2beb43cf85
commit 041a459814

View File

@ -1911,6 +1911,7 @@ void update_history(const char *flname) {
if (i) history_item[i-1].flags |= FL_MENU_DIVIDER;
history_item[i].hide();
}
fluid_prefs.flush();
}
// ********** portable process class definition **********
@ -2137,7 +2138,8 @@ void set_filename(const char *c) {
if (filename) free((void *)filename);
filename = c ? strdup(c) : NULL;
if (filename) update_history(filename);
if (filename && !compile_only)
update_history(filename);
set_modflag(modflag);
}