From 37e5300750ae45ab64f51c59bb1549ad8070c508 Mon Sep 17 00:00:00 2001 From: spiff Date: Sun, 31 Mar 2013 16:12:11 +0200 Subject: [PATCH] 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 --- xbmc/video/windows/GUIWindowVideoBase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index ed4b3777eb602..a2f69566d0aca 100644 --- a/xbmc/video/windows/GUIWindowVideoBase.cpp +++ b/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;