Skip to content

Commit

Permalink
[pvr] don't allow the "go to parent" item to be deleted from the
Browse files Browse the repository at this point in the history
recordings window. The Delete action can't be triggered by the context
menu anymore but is still triggerable using the delete key
  • Loading branch information
Jalle19 committed Feb 19, 2015
1 parent dde54af commit 96b9982
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 96b9982

Please sign in to comment.