Skip to content
This repository
Browse code

Merge pull request #2288 from dodoadoodoo/master

Create channels with m_bEPGEnabled set to false for hidden channels
  • Loading branch information...
commit 686dd32931cf92fcb38983b06a9be7dc6d535242 2 parents d7239c5 + f6fbd23
Lars Op den Kamp authored March 06, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/pvr/channels/PVRChannel.cpp
3  xbmc/pvr/channels/PVRChannel.cpp
@@ -99,7 +99,7 @@ CPVRChannel::CPVRChannel(const PVR_CHANNEL &channel, unsigned int iClientId)
99 99
   m_strFileNameAndPath      = StringUtils::EmptyString;
100 100
   m_bIsVirtual              = false;
101 101
   m_iLastWatched            = 0;
102  
-  m_bEPGEnabled             = true;
  102
+  m_bEPGEnabled             = !channel.bIsHidden;
103 103
   m_strEPGScraper           = "client";
104 104
   m_iEpgId                  = -1;
105 105
   m_bEPGCreated             = false;
@@ -268,6 +268,7 @@ bool CPVRChannel::SetHidden(bool bIsHidden)
268 268
   {
269 269
     /* update the hidden flag */
270 270
     m_bIsHidden = bIsHidden;
  271
+	m_bEPGEnabled = !bIsHidden;
271 272
     SetChanged();
272 273
     m_bChanged = true;
273 274
 

0 notes on commit 686dd32

Please sign in to comment.
Something went wrong with that request. Please try again.