Skip to content

Commit

Permalink
Merge pull request xbmc#10645 from BigNoid/field_operator_label
Browse files Browse the repository at this point in the history
[gui] field and operator buttons from label2 to label
  • Loading branch information
BigNoid committed Oct 7, 2016
2 parents 296c51d + 6d0b065 commit 0b28386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/dialogs/GUIDialogSmartPlaylistRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@ void CGUIDialogSmartPlaylistRule::UpdateButtons()
{
if (m_rule.m_field == 0)
m_rule.m_field = CSmartPlaylistRule::GetFields(m_type)[0];
SET_CONTROL_LABEL2(CONTROL_FIELD, CSmartPlaylistRule::GetLocalizedField(m_rule.m_field));
SET_CONTROL_LABEL(CONTROL_FIELD, CSmartPlaylistRule::GetLocalizedField(m_rule.m_field));

CONTROL_ENABLE(CONTROL_VALUE);
if (CSmartPlaylistRule::IsFieldBrowseable(m_rule.m_field))
CONTROL_ENABLE(CONTROL_BROWSE);
else
CONTROL_DISABLE(CONTROL_BROWSE);
SET_CONTROL_LABEL2(CONTROL_OPERATOR, std::get<0>(OperatorLabel(m_rule.m_operator)));
SET_CONTROL_LABEL(CONTROL_OPERATOR, std::get<0>(OperatorLabel(m_rule.m_operator)));

// update label2 appropriately
SET_CONTROL_LABEL2(CONTROL_VALUE, m_rule.GetParameter());
Expand Down

0 comments on commit 0b28386

Please sign in to comment.