Skip to content
This repository
Browse code

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

… after 26acb13
  • Loading branch information...
commit 49cd92bd56e25739f9e4e6023ac884f55e710bc0 1 parent 71f082f
Sascha Montellese authored November 19, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  xbmc/windows/GUIMediaWindow.cpp
5  xbmc/windows/GUIMediaWindow.cpp
@@ -1741,7 +1741,10 @@ void CGUIMediaWindow::OnFilterItems(const CStdString &filter)
1741 1741
     if (pItem->m_bIsFolder)
1742 1742
     {
1743 1743
       CURL itemUrl(pItem->GetPath());
1744  
-      itemUrl.SetOption("filter", filterOption);
  1744
+      if (!filterOption.empty())
  1745
+        itemUrl.SetOption("filter", filterOption);
  1746
+      else
  1747
+        itemUrl.RemoveOption("filter");
1745 1748
       pItem->SetPath(itemUrl.Get());
1746 1749
     }
1747 1750
   }

0 notes on commit 49cd92b

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