diff options
author | Arno <am@disconnect.de> | 2012-03-18 03:13:06 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-18 03:13:06 +0100 |
commit | 6c97f7d9eef744ce1da03f4d203af2307b08f6eb (patch) | |
tree | 8079a158f6a12acaa4aef4588a93b513aaa49121 /smglobals.cpp | |
parent | 3e784fed0148c4ec24aa8b2b8ca53f2d9d9bc543 (diff) | |
download | SheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.tar.gz SheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.tar.bz2 SheMov-6c97f7d9eef744ce1da03f4d203af2307b08f6eb.zip |
Fix FrameCache and HoverWindow
Another commit that should be two. While fixing FrameCache to delete
invalid Pixmaps, I ventured into the depths of HoverWindow. Now it hides
when focus leaves the widget we're hovering over.
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 5 |
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); } |