Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
You mean parsing the files at every startup or preference change and
comparing the parsed value and the default saved value each time?

Attached is an alternative approach. Since we parse the files anyway in readUIFile, we can just remember which of the files has the crucial Toolbars tag, and only reset if that file was touched. This also works if several files or one of the included files have this tag.

In the default setting, this is the file default.ui, which is changed rather seldomly.

Should work. Good idea.

Abdel.

Reply via email to