Skip to content
This repository
Browse code

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
authored
5  xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -2086,7 +2086,10 @@ void CGUIWindowVideoBase::OnSearchItemFound(const CFileItem* pSelItem)
2086 2086
     for (int i = 0; i < (int)m_vecItems->Size(); i++)
2087 2087
     {
2088 2088
       CFileItemPtr pItem = m_vecItems->Get(i);
2089  
-      if (pItem->GetPath() == pSelItem->GetPath())
  2089
+      CURL url(pItem->GetPath());
  2090
+      if (pSelItem->IsVideoDb())
  2091
+        url.SetOptions("");
  2092
+      if (url.Get() == pSelItem->GetPath())
2090 2093
       {
2091 2094
         m_viewControl.SetSelectedItem(i);
2092 2095
         break;

0 notes on commit 37e5300

Please sign in to comment.
Something went wrong with that request. Please try again.