Author: matt
Date: 2011-08-18 06:43:39 -0700 (Thu, 18 Aug 2011)
New Revision: 8980
Log:
Fluid -c would destroy the file history every time it was run.

Modified:
   branches/branch-1.3/fluid/fluid.cxx

Modified: branches/branch-1.3/fluid/fluid.cxx
===================================================================
--- branches/branch-1.3/fluid/fluid.cxx 2011-08-18 10:27:45 UTC (rev 8979)
+++ branches/branch-1.3/fluid/fluid.cxx 2011-08-18 13:43:39 UTC (rev 8980)
@@ -1911,6 +1911,7 @@
     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 @@
   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);
 }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to