Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: selection of correct item after searches

need to strip the options off the videodb items as the
selitem do not have them applied

closes #14054
  • Loading branch information...
commit 37e5300750ae45ab64f51c59bb1549ad8070c508 1 parent d75740b
spiff authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/video/windows/GUIWindowVideoBase.cpp
View
5 xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -2086,7 +2086,10 @@ void CGUIWindowVideoBase::OnSearchItemFound(const CFileItem* pSelItem)
for (int i = 0; i < (int)m_vecItems->Size(); i++)
{
CFileItemPtr pItem = m_vecItems->Get(i);
- if (pItem->GetPath() == pSelItem->GetPath())
+ CURL url(pItem->GetPath());
+ if (pSelItem->IsVideoDb())
+ url.SetOptions("");
+ if (url.Get() == pSelItem->GetPath())
{
m_viewControl.SetSelectedItem(i);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.