Skip to content
Permalink
Browse files

Fix silly logic error, doubled due to lazy copy/paste

  • Loading branch information
stuartm committed Nov 25, 2012
1 parent 9ae09db commit d5e6bc423a696a66d8f257c0af0b98fbb17dd87e
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/channelinfo.h
@@ -47,7 +47,7 @@ class MTV_PUBLIC ChannelInfo
void LoadGroupIds();
void AddGroupId(uint lgroupid)
{
if (m_groupIdList.contains(lgroupid))
if (!m_groupIdList.contains(lgroupid))
m_groupIdList.push_back(lgroupid);
}
void RemoveGroupId(uint lgroupid) { m_groupIdList.removeOne(lgroupid); }
@@ -59,7 +59,7 @@ class MTV_PUBLIC ChannelInfo
// to it
void AddCardId(uint lcardid)
{
if (m_cardIdList.contains(lcardid))
if (!m_cardIdList.contains(lcardid))
m_cardIdList.push_back(lcardid);
}
void RemoveCardId(uint lcardid) { m_cardIdList.removeOne(lcardid); }

0 comments on commit d5e6bc4

Please sign in to comment.
You can’t perform that action at this time.