diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-08-18 13:43:39 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-08-18 13:43:39 +0000 |
| commit | 041a4598145870659f78708d0a53cd1547edcc0e (patch) | |
| tree | 0e7ed4a7329199cd8c47c5340e2e13df96906635 | |
| parent | 2beb43cf85f6d22e398458b3260e4e1b4d88f5db (diff) | |
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
| -rw-r--r-- | fluid/fluid.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 674703ff6..2cfd8c10a 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -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); } |
