Am 03.01.2011 um 13:56 schrieb Abdelrazak Younes: > On 01/03/2011 09:26 AM, Vincent van Ravesteijn wrote: >> Furthermore, I'm not sure yet what causes the bug, because it seems >> that if the user sets the toolbar visibility from within LyX, this >> setting is lost again on the new start-up of LyX. Why are the settings >> not stored properly when exiting LyX ? > > AFAIR LyX checks the time tag of "ui/default.ui" and use the toolbar > information from there instead of QSettings if the file was changed. > Perhaps this file has a time tag in the future in the Windows installer?
Ha! That's it. The combination of changed ui file and already stored settings is the culprit. Thanks! In GuiApplication::readUIFile() the settings for views gets removed if the ui file is newer than the saved timestamp in the settings. Later the non existing settings will be used to initialize the visibility. The default value for a non existing setting is 0. So, Vincents (pending) patch should catch that already. Stephan