Skip to content

Commit

Permalink
Merge pull request #10663 from BigNoid/conditional_onclick_override
Browse files Browse the repository at this point in the history
[guilib] make onclick override conditional. Fallback to default actio…
  • Loading branch information
BigNoid committed Oct 10, 2016
2 parents 6e23d12 + c070fe0 commit 04d0abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIBaseContainer.cpp
Expand Up @@ -762,7 +762,7 @@ bool CGUIBaseContainer::OnClick(int actionID)
int selected = GetSelectedItem();
if (selected >= 0 && selected < (int)m_items.size())
{
if (m_clickActions.HasAnyActions())
if (m_clickActions.HasActionsMeetingCondition())
m_clickActions.ExecuteActions(0, GetParentID(), m_items[selected]);
else
m_listProvider->OnClick(m_items[selected]);
Expand Down

0 comments on commit 04d0abb

Please sign in to comment.