summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smglobals.cpp')
-rw-r--r--smglobals.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index 54f352d..ee43055 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -243,6 +243,11 @@ void SmGlobals::FrameCache::readCache(){
while(!ds.atEnd()){
QString source, pos, cacheFile;
ds >> source >> pos >> cacheFile;
+ QFileInfo fi(cacheFile);
+ if(fi.size() == 0){
+ QFile::remove(fi.absoluteFilePath());
+ continue;
+ }
QPair<QString, QString> pair(source, pos);
mFrameCache.insert(pair, cacheFile);
}