Ticket #3966: 3966-v2.patch
File 3966-v2.patch, 1.3 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/tv_rec.cpp
2159 2159 // sharing the prefix we were given. 2160 2160 2161 2161 // Is an extra characher useful for disambiguation? 2162 i f (query.exec(basequery.arg(prefix)))2163 is_extra_char_useful = query.next();2164 for (uint i = 0; i < ((is_extra_char_useful) ? 0 : fchannum.size()); i++)2162 is_extra_char_useful = false; 2163 for (uint i = 0; (i < fchannum.size()) && !is_extra_char_useful; i++) 2164 { 2165 2165 is_extra_char_useful = (fchannum[i] != add_spacer(prefix, fspacer[i])); 2166 VERBOSE(VB_IMPORTANT, "is_extra_char_useful(" 2167 <<fchannum[i]<<"!="<<add_spacer(prefix, fspacer[i]) 2168 <<"): "<<is_extra_char_useful); 2169 } 2166 2170 2167 2171 // Are any of the channels complete w/o spacer? 2168 2172 // If so set is_complete_valid_channel_on_rec, … … 2191 2195 // then try to commit to any true match immediately. 2192 2196 for (uint i = 0; i < ((is_extra_char_useful) ? 0 : fchanid.size()); i++) 2193 2197 { 2194 if (fcardid[i] != cardid)2195 break;2196 2197 2198 if (fchannum[i] == add_spacer(prefix, fspacer[i])) 2198 2199 { 2199 2200 needed_spacer = QDeepCopy<QString>(fspacer[i]);