Ticket #5533: patch.diff

File patch.diff, 943 bytes (added by grhowes@…, 16 years ago)

Patch to networkcontrol.cpp

  • networkcontrol.cpp

     
    930930    bool appendCRLF = true;
    931931    QString queryStr("SELECT chanid, starttime, endtime, title, subtitle "
    932932                         "FROM program "
    933                          "WHERE starttime < :NOW AND endtime > :NOW ");
     933                         "WHERE starttime < :MINSTARTTIME AND endtime > :MAXENDTIME ");
    934934
    935935    if(chanID != "")
    936936    {
     
    941941    queryStr += " ORDER BY starttime, endtime, chanid";
    942942
    943943    query.prepare(queryStr);
    944     query.bindValue(":NOW", QDateTime::currentDateTime());
     944    query.bindValue(":MINSTARTTIME", QDateTime::currentDateTime());
     945    query.bindValue(":MAXENDTIME", QDateTime::currentDateTime());
    945946    query.bindValue(":CHANID", chanID);
    946947
    947948    if (query.exec() && query.isActive() && query.size() > 0)