Skip to content

Commit

Permalink
Fix silly logic error, doubled due to lazy copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Nov 25, 2012
1 parent 9ae09db commit d5e6bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/channelinfo.h
Expand Up @@ -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); }
Expand All @@ -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); }
Expand Down

0 comments on commit d5e6bc4

Please sign in to comment.