From a39b9bb410593edf105be3ce808b6bfd94f95cde Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 11 Apr 2013 07:19:51 +0200 Subject: Fix frame cacheDir Get rid of the cache file. Instead, generate the cache on startup. The cache was never written since it was turned into a thread. Because of that I wrote a cleanup function, but surprisingly it didn't have much impact on the startup time, so I dropped the cache file. Also, fix destructor of SmGlobals. Call deleteLater on all Q_OBJECTS, and of course, some header cleanup. --- smglobals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index 9f52854..6652d0e 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -35,9 +35,9 @@ SmGlobals *SmGlobals::mInstance = 0; SmGlobals::~SmGlobals(){ foreach(QAbstractItemModel *model, mModels.values()){ - delete model; + model->deleteLater(); } - delete mFrameCache; + mFrameCache->deleteLater(); } SmGlobals *SmGlobals::instance(){ -- cgit v1.2.3-70-g09d2