Permalink
Browse files

media library: don't append empty "filter" option to all folder paths…

… after 26acb13
  • Loading branch information...
1 parent 71f082f commit 49cd92bd56e25739f9e4e6023ac884f55e710bc0 @Montellese Montellese committed Nov 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/windows/GUIMediaWindow.cpp
@@ -1741,7 +1741,10 @@ void CGUIMediaWindow::OnFilterItems(const CStdString &filter)
if (pItem->m_bIsFolder)
{
CURL itemUrl(pItem->GetPath());
- itemUrl.SetOption("filter", filterOption);
+ if (!filterOption.empty())
+ itemUrl.SetOption("filter", filterOption);
+ else
+ itemUrl.RemoveOption("filter");
pItem->SetPath(itemUrl.Get());
}
}

0 comments on commit 49cd92b

Please sign in to comment.