Ticket #5533: patch.diff
File patch.diff, 943 bytes (added by , 16 years ago) |
---|
-
networkcontrol.cpp
930 930 bool appendCRLF = true; 931 931 QString queryStr("SELECT chanid, starttime, endtime, title, subtitle " 932 932 "FROM program " 933 "WHERE starttime < : NOW AND endtime > :NOW");933 "WHERE starttime < :MINSTARTTIME AND endtime > :MAXENDTIME "); 934 934 935 935 if(chanID != "") 936 936 { … … 941 941 queryStr += " ORDER BY starttime, endtime, chanid"; 942 942 943 943 query.prepare(queryStr); 944 query.bindValue(":NOW", QDateTime::currentDateTime()); 944 query.bindValue(":MINSTARTTIME", QDateTime::currentDateTime()); 945 query.bindValue(":MAXENDTIME", QDateTime::currentDateTime()); 945 946 query.bindValue(":CHANID", chanID); 946 947 947 948 if (query.exec() && query.isActive() && query.size() > 0)