diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2023-12-31 04:47:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-31 04:47:26 +1000 |
commit | b0635cc0206f4f9eea566165b95e69dafcb348f3 (patch) | |
tree | 9c094eec5155f437d81696f699946977a77556c1 | |
parent | 899de66a60ed098fcba6d0a690da03da22403dc2 (diff) | |
parent | e873b0f5205f5e261083888f5c1c734fa322e359 (diff) |
Merge pull request #24354 from fuzzard/bp_oninfo_estuary
[BP][guilib] let oninfo propagate from the item to the container if the container cannot handle the item info
-rw-r--r-- | xbmc/guilib/GUIBaseContainer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/guilib/GUIBaseContainer.cpp b/xbmc/guilib/GUIBaseContainer.cpp index b6260b5e04..f8089da7cb 100644 --- a/xbmc/guilib/GUIBaseContainer.cpp +++ b/xbmc/guilib/GUIBaseContainer.cpp @@ -404,14 +404,14 @@ bool CGUIBaseContainer::OnAction(const CAction &action) case ACTION_SHOW_INFO: if (m_listProvider) { - int selected = GetSelectedItem(); + const int selected = GetSelectedItem(); if (selected >= 0 && selected < static_cast<int>(m_items.size())) { - m_listProvider->OnInfo(m_items[selected]); - return true; + if (m_listProvider->OnInfo(m_items[selected])) + return true; } } - else if (OnInfo()) + if (OnInfo()) return true; else if (action.GetID()) return OnClick(action.GetID()); |