From 6c97f7d9eef744ce1da03f4d203af2307b08f6eb Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 18 Mar 2012 03:13:06 +0100 Subject: 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. --- smglobals.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'smglobals.cpp') 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 pair(source, pos); mFrameCache.insert(pair, cacheFile); } -- cgit v1.2.3-70-g09d2