diff options
| author | Arno <am@disconnect.de> | 2013-04-11 07:19:51 +0200 | 
|---|---|---|
| committer | Arno <am@disconnect.de> | 2013-04-11 07:19:51 +0200 | 
| commit | a39b9bb410593edf105be3ce808b6bfd94f95cde (patch) | |
| tree | 4566c8f01b3071d9758a376307ee290b681f8965 /smglobals.cpp | |
| parent | d71c97f56f4eb35a8918b9741fe6bfd6417a3b5c (diff) | |
| download | SheMov-a39b9bb410593edf105be3ce808b6bfd94f95cde.tar.gz SheMov-a39b9bb410593edf105be3ce808b6bfd94f95cde.tar.bz2 SheMov-a39b9bb410593edf105be3ce808b6bfd94f95cde.zip | |
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.
Diffstat (limited to 'smglobals.cpp')
| -rw-r--r-- | smglobals.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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(){ | 
