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:
parent
2beb43cf85
commit
041a459814
@ -1911,6 +1911,7 @@ void update_history(const char *flname) {
|
|||||||
if (i) history_item[i-1].flags |= FL_MENU_DIVIDER;
|
if (i) history_item[i-1].flags |= FL_MENU_DIVIDER;
|
||||||
history_item[i].hide();
|
history_item[i].hide();
|
||||||
}
|
}
|
||||||
|
fluid_prefs.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ********** portable process class definition **********
|
// ********** portable process class definition **********
|
||||||
@ -2137,7 +2138,8 @@ void set_filename(const char *c) {
|
|||||||
if (filename) free((void *)filename);
|
if (filename) free((void *)filename);
|
||||||
filename = c ? strdup(c) : NULL;
|
filename = c ? strdup(c) : NULL;
|
||||||
|
|
||||||
if (filename) update_history(filename);
|
if (filename && !compile_only)
|
||||||
|
update_history(filename);
|
||||||
|
|
||||||
set_modflag(modflag);
|
set_modflag(modflag);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user