Skip to content
This repository
Browse code

advanced filtering: fix set/tag filter being disabled if there's only…

… one item to choose
  • Loading branch information...
commit 705242e9eec006c1e6f92bc6a922e038e682cd18 1 parent 0eda7aa
Sascha Montellese authored February 05, 2013

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

  1. 3  xbmc/dialogs/GUIDialogMediaFilter.cpp
3  xbmc/dialogs/GUIDialogMediaFilter.cpp
@@ -642,7 +642,8 @@ void CGUIDialogMediaFilter::UpdateControls()
642 642
         size = (int)items[0]->GetProperty("total").asInteger();
643 643
 
644 644
       CStdString label = g_localizeStrings.Get(itFilter->second.label);
645  
-      if (size <= 1)
  645
+      if (size <= 0 ||
  646
+         (size == 1 && itFilter->second.field != FieldSet && itFilter->second.field != FieldTag))
646 647
         CONTROL_DISABLE(itFilter->second.controlIndex);
647 648
       else
648 649
       {

0 notes on commit 705242e

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