GUIWindowVideoNav.cpp (xbmc-18.7.1-Leia) | : | GUIWindowVideoNav.cpp (xbmc-18.8-Leia) | ||
---|---|---|---|---|
skipping to change at line 593 | skipping to change at line 593 | |||
{ | { | |||
database.GetItemsForPath(content, items.GetPath(), dbItems); | database.GetItemsForPath(content, items.GetPath(), dbItems); | |||
dbItems.SetFastLookup(true); | dbItems.SetFastLookup(true); | |||
} | } | |||
for (int i = 0; i < items.Size(); i++) | for (int i = 0; i < items.Size(); i++) | |||
{ | { | |||
CFileItemPtr pItem = items[i]; | CFileItemPtr pItem = items[i]; | |||
CFileItemPtr match; | CFileItemPtr match; | |||
if (!content.empty() && pItem->m_bIsFolder && !pItem->IsParentFolder()) | if (pItem->m_bIsFolder && !pItem->IsParentFolder()) | |||
{ | { | |||
// we need this for enabling the right context menu entries, like mark wat ched / unwatched | // we need this for enabling the right context menu entries, like mark wat ched / unwatched | |||
pItem->SetProperty("IsVideoFolder", true); | pItem->SetProperty("IsVideoFolder", true); | |||
} | } | |||
if (!content.empty()) /* optical media will be stacked down, so it's path wo n't match the base path */ | if (!content.empty()) /* optical media will be stacked down, so it's path wo n't match the base path */ | |||
{ | { | |||
std::string pathToMatch = pItem->IsOpticalMediaFile() ? pItem->GetLocalMet adataPath() : pItem->GetPath(); | std::string pathToMatch = pItem->IsOpticalMediaFile() ? pItem->GetLocalMet adataPath() : pItem->GetPath(); | |||
if (URIUtils::IsMultiPath(pathToMatch)) | if (URIUtils::IsMultiPath(pathToMatch)) | |||
pathToMatch = CMultiPathDirectory::GetFirstPath(pathToMatch); | pathToMatch = CMultiPathDirectory::GetFirstPath(pathToMatch); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |