From 2c1fa865851adf49f4defb1a6635d652bbdbbb26 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Sat, 11 Feb 2012 12:57:18 +1300 Subject: save picture/program thumbs using their original urls, not cached urls --- xbmc/dialogs/GUIDialogContextMenu.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xbmc/dialogs/GUIDialogContextMenu.cpp b/xbmc/dialogs/GUIDialogContextMenu.cpp index 1dc25a8a91..ab469e1ee6 100644 --- a/xbmc/dialogs/GUIDialogContextMenu.cpp +++ b/xbmc/dialogs/GUIDialogContextMenu.cpp @@ -558,12 +558,10 @@ bool CGUIDialogContextMenu::OnContextButton(const CStdString &type, const CFileI { // store the thumb for this share CTextureDatabase db; if (db.Open()) - { - cachedThumb = CTextureCache::GetUniqueImage(item->GetPath(), URIUtils::GetExtension(strThumb)); - db.SetTextureForPath(item->GetPath(), cachedThumb); - } + db.SetTextureForPath(item->GetPath(), strThumb); } - XFILE::CFile::Cache(strThumb, cachedThumb); + if (!cachedThumb.IsEmpty()) + XFILE::CFile::Cache(strThumb, cachedThumb); } CGUIMessage msg(GUI_MSG_NOTIFY_ALL,0,0,GUI_MSG_UPDATE_SOURCES); -- cgit v1.2.3