Skip to content

Commit

Permalink
[gui] remove any set context buttons for the "go to parent" item
Browse files Browse the repository at this point in the history
(fixes xbmc#15732)
  • Loading branch information
Jalle19 committed Feb 19, 2015
1 parent deeb587 commit dde54af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/windows/GUIMediaWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1523,8 +1523,12 @@ void CGUIMediaWindow::GetContextButtons(int itemNumber, CContextButtons &buttons
{
CFileItemPtr item = (itemNumber >= 0 && itemNumber < m_vecItems->Size()) ? m_vecItems->Get(itemNumber) : CFileItemPtr();

if (!item)
// ensure that the "go to parent" item doesn't have any context menu items
if (!item || item->IsParentFolder())
{
buttons.clear();
return;
}

// user added buttons
std::string label;
Expand Down

0 comments on commit dde54af

Please sign in to comment.