Permalink
Browse files

[addons] fix addon info not opening from context menu (closes #16087)

  • Loading branch information...
mkortstiege authored and popcornmix committed Jul 2, 2015
1 parent a61b378 commit 2df50416421829c610a3bbe13d4028f88e7b92ab
Showing with 9 additions and 4 deletions.
  1. +9 −4 xbmc/addons/GUIWindowAddonBrowser.cpp
@@ -191,13 +191,18 @@ bool CGUIWindowAddonBrowser::OnContextButton(int itemNumber, CONTEXT_BUTTON butt
CFileItemPtr pItem = m_vecItems->Get(itemNumber);
std::string addonId = pItem->GetProperty("Addon.ID").asString();
AddonPtr addon;
if (!addonId.empty() && CAddonMgr::Get().GetAddon(addonId, addon, ADDON_UNKNOWN, false))
if (!addonId.empty())
{
if (button == CONTEXT_BUTTON_SETTINGS)
return CGUIDialogAddonSettings::ShowAndGetInput(addon);
if (button == CONTEXT_BUTTON_INFO)
{
return CGUIDialogAddonInfo::ShowForItem(pItem);
}
else if (button == CONTEXT_BUTTON_SETTINGS)
{
AddonPtr addon;
if (CAddonMgr::Get().GetAddon(addonId, addon, ADDON_UNKNOWN, false))
return CGUIDialogAddonSettings::ShowAndGetInput(addon);
}
}
return CGUIMediaWindow::OnContextButton(itemNumber, button);

0 comments on commit 2df5041

Please sign in to comment.