From 50783b0819531087266c626fa6066e8233bb0692 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 22 Aug 2011 18:24:13 +0200 Subject: 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. --- filestreewidget.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'filestreewidget.cpp') diff --git a/filestreewidget.cpp b/filestreewidget.cpp index d44e561..1a17be5 100644 --- a/filestreewidget.cpp +++ b/filestreewidget.cpp @@ -430,9 +430,6 @@ bool FilesTreeView::event(QEvent *e){ return exitHover(); } } - if(!QFileInfo(curIdx.data(FilesTreeModel::FullPathRole).toString()).exists()){ - return exitHover(); - } } if(e->type() == QEvent::HoverEnter){ doHover(curIdx); -- cgit v1.2.3-70-g09d2