From 96b9982b50eea1450244e6696870c56a0f0b91de Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Thu, 29 Jan 2015 12:56:03 +0200 Subject: [PATCH] [pvr] don't allow the "go to parent" item to be deleted from the recordings window. The Delete action can't be triggered by the context menu anymore but is still triggerable using the delete key --- xbmc/pvr/windows/GUIWindowPVRRecordings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp index 7ebafc1a7a17c..8cf5ec5e8c16f 100644 --- a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp +++ b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp @@ -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 */