diff options
author | Arno <am@disconnect.de> | 2011-08-22 18:24:13 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-08-22 18:24:13 +0200 |
commit | 50783b0819531087266c626fa6066e8233bb0692 (patch) | |
tree | abbcaa29dc5653d8e5966eddf550bcc4e7e252e0 /smglobals.h | |
parent | f427305bb038ab3af27fb8a1a17827732c3713f3 (diff) | |
download | SheMov-50783b0819531087266c626fa6066e8233bb0692.tar.gz SheMov-50783b0819531087266c626fa6066e8233bb0692.tar.bz2 SheMov-50783b0819531087266c626fa6066e8233bb0692.zip |
Fixes for SmGlobals::FrameCache
Don't generate duplicate screenshots when the same file is indexed in
different paths. Part of the frameCache key was the _full_ path, not
just the filename, so duplicates piled up when hovering over the same
file in the filesystem and the archive.
Added a cleanup function to SmGlobals::FrameCache. Also, just use
QFileInfo::fileName() as part of the key.
Diffstat (limited to 'smglobals.h')
-rw-r--r-- | smglobals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/smglobals.h b/smglobals.h index 7033b34..1193522 100644 --- a/smglobals.h +++ b/smglobals.h @@ -30,6 +30,7 @@ class SmGlobals : public QObject { private: void readCache(); void grabFrame(const QString &sourceFile, QString when); + void cleanup(); const QPair<QString, QString> prepFrame(const QString &sourceFile, QString when); QHash<QPair<QString, QString>, QString> mFrameCache; const qint32 mMagic; |