[mythtv] problem with delete button "Yes, but record..." missing

Bruce Markey bjm at lvcm.com
Thu Feb 12 01:11:10 EST 2004


Chris Pinkham wrote:
...
> Bruce, can you comment on the kFindOneRecord since you added that
> new recording type?

Ya, in order for it to work as intended, it has to treat
every instance of the title as rsOtherShowing with no regard
for the subtitle or description. Therefore IsSameProgram()
needs to always return true for this type when it is called
in Scheduler::PruneList().

In fact, it should return true whenever "title == other.title"
even if "(dupmethod & kDupCheckNone)" as it had been in rev 1.104.

bool ProgramInfo::IsSameProgram(const ProgramInfo& other) const
{
    if (title == other.title && rectype == kFindOneRecord)
        return true;

    if ((title != other.title) ||
        (dupmethod & kDupCheckNone))
        return false;

    if ((((dupmethod & kDupCheckSub) &&
          (subtitle.length() > 2) && 
          (subtitle == other.subtitle)) ||
         (~dupmethod & kDupCheckSub)) &&
        (((dupmethod & kDupCheckDesc) &&
          (description.length() > 2) &&
          (description == other.description)) ||
         (~dupmethod & kDupCheckDesc)))
        return true;
    else
        return false;
}

--  bjm


More information about the mythtv-dev mailing list