Bug Fixes in KDE-PIM
Destroy the models immediately when returning from the settings dialog
Previsouly, there was a possibility that the SQL cache might be involved in some
activity at the time the nukeModels() was called. However, due to the delayed
deleting, the Model's actual destructor (which destroyes the cache, which ends
the active transaction) might be run only after the setupModels() has finished,
which meant that the newly-created sqlite connection hit a locked database.
Thanks to Stefan Kögl (hotte on IRC) for reporting.