Skip to content
Browse files

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

… one item to choose
  • Loading branch information...
1 parent 0eda7aa commit 705242e9eec006c1e6f92bc6a922e038e682cd18 @Montellese Montellese committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/dialogs/GUIDialogMediaFilter.cpp
View
3 xbmc/dialogs/GUIDialogMediaFilter.cpp
@@ -642,7 +642,8 @@ void CGUIDialogMediaFilter::UpdateControls()
size = (int)items[0]->GetProperty("total").asInteger();
CStdString label = g_localizeStrings.Get(itFilter->second.label);
- if (size <= 1)
+ if (size <= 0 ||
+ (size == 1 && itFilter->second.field != FieldSet && itFilter->second.field != FieldTag))
CONTROL_DISABLE(itFilter->second.controlIndex);
else
{

0 comments on commit 705242e

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