[Library] r8479 - trunk/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r8479 - trunk/src fltk-dev Feb 27, 2011 top right image
 
Author: bgbnbigben
Date: 2011-02-27 04:04:35 -0800 (Sun, 27 Feb 2011)
New Revision: 8479
Log:
Fixed #1609 - automatically flush FileChooser favourites each time a new one is added


Modified:
   trunk/src/FileChooser2.cxx

Modified: trunk/src/FileChooser2.cxx
===================================================================
--- trunk/src/FileChooser2.cxx	2011-02-26 14:14:50 UTC (rev 8478)
+++ trunk/src/FileChooser2.cxx	2011-02-27 12:04:35 UTC (rev 8479)
@@ -284,6 +284,7 @@
     sprintf(menuname, "favorite%02d", v);
 
     prefs_.set(menuname, directory_);
+	prefs_.flush();
 
     quote_pathname(menuname, directory_, sizeof(menuname));
     favoritesButton->add(menuname);

Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.