Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GUIWindowPVRChannels: toggle recording on channel only when button is…

… CONTEXT_BUTTON_RECORD_ITEM
  • Loading branch information...
commit 6e68446749f52b6d21f427a1cb8ee94a4132b5ec 1 parent c0805ab
@mikrohard authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 xbmc/pvr/windows/GUIWindowPVRChannels.cpp
View
10 xbmc/pvr/windows/GUIWindowPVRChannels.cpp
@@ -548,10 +548,14 @@ bool CGUIWindowPVRChannels::OnContextButtonFilter(CFileItem *item, CONTEXT_BUTTO
bool CGUIWindowPVRChannels::OnContextButtonRecord(CFileItem *item, CONTEXT_BUTTON button)
{
bool bReturn(false);
- CPVRChannel *channel = item->GetPVRChannelInfoTag();
+
+ if (button == CONTEXT_BUTTON_RECORD_ITEM)
+ {
+ CPVRChannel *channel = item->GetPVRChannelInfoTag();
- if (channel)
- return g_PVRManager.ToggleRecordingOnChannel(channel->ChannelID());
+ if (channel)
+ return g_PVRManager.ToggleRecordingOnChannel(channel->ChannelID());
+ }
return bReturn;
}
Please sign in to comment.
Something went wrong with that request. Please try again.