Skip to content

Commit

Permalink
fixed: selection of correct item after searches
Browse files Browse the repository at this point in the history
need to strip the options off the videodb items as the
selitem do not have them applied

closes #14054
  • Loading branch information
spiff committed Mar 31, 2013
1 parent d75740b commit 37e5300
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/video/windows/GUIWindowVideoBase.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 37e5300

Please sign in to comment.