diff options
author | jmarshallnz <jmarshallnz@svn> | 2009-11-15 01:39:37 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2009-11-15 01:39:37 +0000 |
commit | d51b635a3d6e2b531176e2c734f1b772aea3277e (patch) | |
tree | 9a0cc897af20712912a8435bc81784df490d3570 | |
parent | cbba95e932295c017234f6d6e914718674df5f01 (diff) |
fixed: Make sure we remove the cached local fanart thumb when browsing for fanart.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24616 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/GUIWindowMusicInfo.cpp | 3 | ||||
-rw-r--r-- | xbmc/GUIWindowVideoInfo.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/GUIWindowMusicInfo.cpp b/xbmc/GUIWindowMusicInfo.cpp index ef0fbf4ff3..f783d26227 100644 --- a/xbmc/GUIWindowMusicInfo.cpp +++ b/xbmc/GUIWindowMusicInfo.cpp @@ -602,6 +602,9 @@ void CGUIWindowMusicInfo::OnGetFanart() CFileItemPtr itemLocal(new CFileItem("fanart://Local",false)); itemLocal->SetThumbnailImage(strLocal); itemLocal->SetLabel(g_localizeStrings.Get(20438)); + // make sure any previously cached thumb is removed + if (CFile::Exists(itemLocal->GetCachedPictureThumb())) + CFile::Delete(itemLocal->GetCachedPictureThumb()); items.Add(itemLocal); } diff --git a/xbmc/GUIWindowVideoInfo.cpp b/xbmc/GUIWindowVideoInfo.cpp index d9efb7d5c5..b5f378e2c6 100644 --- a/xbmc/GUIWindowVideoInfo.cpp +++ b/xbmc/GUIWindowVideoInfo.cpp @@ -865,6 +865,9 @@ void CGUIWindowVideoInfo::OnGetFanart() CFileItemPtr itemLocal(new CFileItem("fanart://Local",false)); itemLocal->SetThumbnailImage(strLocal); itemLocal->SetLabel(g_localizeStrings.Get(20438)); + // make sure any previously cached thumb is removed + if (CFile::Exists(itemLocal->GetCachedPictureThumb())) + CFile::Delete(itemLocal->GetCachedPictureThumb()); items.Add(itemLocal); } |