Skip to content

Commit

Permalink
[contextmenu] remove duplicate menus in eventlog
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Mar 16, 2016
1 parent f981ae1 commit 02d5604
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions xbmc/events/windows/GUIWindowEventLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ void CGUIWindowEventLog::GetContextButtons(int itemNumber, CContextButtons &butt
if (eventPtr == nullptr)
return;

buttons.Add(CONTEXT_BUTTON_INFO, g_localizeStrings.Get(19033));
buttons.Add(CONTEXT_BUTTON_DELETE, g_localizeStrings.Get(1210));
if (eventPtr->CanExecute())
buttons.Add(CONTEXT_BUTTON_ACTIVATE, eventPtr->GetExecutionLabel());
}

bool CGUIWindowEventLog::OnContextButton(int itemNumber, CONTEXT_BUTTON button)
Expand All @@ -185,15 +182,9 @@ bool CGUIWindowEventLog::OnContextButton(int itemNumber, CONTEXT_BUTTON button)

switch (button)
{
case CONTEXT_BUTTON_INFO:
return OnSelect(item);

case CONTEXT_BUTTON_DELETE:
return OnDelete(item);

case CONTEXT_BUTTON_ACTIVATE:
return OnExecute(item);

default:
break;
}
Expand Down

0 comments on commit 02d5604

Please sign in to comment.