From 041a4598145870659f78708d0a53cd1547edcc0e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 18 Aug 2011 13:43:39 +0000 Subject: 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 --- fluid/fluid.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3