diff options
-rw-r--r-- | xbmc/video/dialogs/GUIDialogVideoInfo.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp index 626993695c..02b42e8715 100644 --- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp @@ -1224,21 +1224,10 @@ bool CGUIDialogVideoInfo::DeleteVideoItemFromDatabase(const CFileItemPtr &item, break; case VIDEODB_CONTENT_MOVIE_SETS: database.DeleteSet(item->GetVideoInfoTag()->m_iDbId); - return true; // no need to invalidate path hashes + break; default: return false; } - - CStdString path; - database.GetFilePathById(item->GetVideoInfoTag()->m_iDbId, path, type); - if (!path.empty()) - { - if (type == VIDEODB_CONTENT_TVSHOWS) - database.SetPathHash(path,""); - else - database.SetPathHash(URIUtils::GetDirectory(path), ""); - } - return true; } |