Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… one item to choose
  • Loading branch information...
commit 705242e9eec006c1e6f92bc6a922e038e682cd18 1 parent 0eda7aa
@Montellese Montellese authored
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
{
Please sign in to comment.
Something went wrong with that request. Please try again.