Skip to content

Commit

Permalink
Merge pull request xbmc#6290 from Jalle19/fix-15732
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Feb 19, 2015
2 parents 35b7ab3 + 96b9982 commit 0c6eadc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ bool CGUIWindowPVRRecordings::ActionDeleteRecording(CFileItem *item)
{
bool bReturn = false;

if (!item->IsPVRRecording() && !item->m_bIsFolder)
if (!item->IsPVRRecording() && !item->m_bIsFolder || item->IsParentFolder())
return bReturn;

/* show a confirmation dialog */
Expand Down
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 0c6eadc

Please sign in to comment.