[Subsurface] #540: Chronology into drop-down menu "File"

Dirk Hohndel dirk at hohndel.org
Thu Jun 12 10:34:25 PDT 2014


On Thu, Jun 12, 2014 at 09:44:19AM -0700, Dirk Hohndel wrote:
> On Wed, Jun 11, 2014 at 08:16:11AM +0200, roberto forini wrote:
> > try this http://youtu.be/K1A_6QaPAbg
> 
> Amazing. I don't see this behavior - neither on Linux nor on Windows.
> I'll stare at the code a bit to see if I can find something that would
> explain it... but right now I'm just puzzled :-)

I figured it out. We were calling loadRecentFiles() too early. In
init_ui() the QSettings appear to still be uninitialized (no idea why -
but reading the settings gives back no values). By moving the call later
(I simply picked run_ui()) this should work.

I also figured out why I couldn't reproduce it. This can only happen if
the default file is /unset/ - if you have any value in there, even an
invalid one, still loadFiles() gets called which calls addRecentFiles()
which at the end (re-)populates the list.

Fix forthcoming.

/D


More information about the subsurface mailing list