diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-02-11 12:57:18 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-03-31 16:25:55 +1300 |
commit | 2c1fa865851adf49f4defb1a6635d652bbdbbb26 (patch) | |
tree | 22f6feac69512f40bcf9110653d7cef3b562ebe9 | |
parent | e9d1ef55fc312cf22cae134babffedb79cb8c31a (diff) |
save picture/program thumbs using their original urls, not cached urls
-rw-r--r-- | xbmc/dialogs/GUIDialogContextMenu.cpp | 8 |
1 files 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); |