Ticket #4098: libmythtv-channeleditor-rememberLastChannel-22102007.diff
File libmythtv-channeleditor-rememberLastChannel-22102007.diff, 803 bytes (added by , 17 years ago) |
---|
-
libs/libmythtv/channeleditor.cpp
116 116 clearSelections(); 117 117 addSelection(QObject::tr("(New Channel)")); 118 118 bool fAllSources = true; 119 int nCount = 0; 119 120 120 121 QString querystr = "SELECT channel.name,channum,chanid "; 121 122 … … 184 185 name += " (" + sourceid + ")"; 185 186 186 187 addSelection(name, chanid, (chanid == currentValue) ? true : false); 188 189 nCount++; 190 191 // nCount increments first since "(New Channel)" offsets list by one 192 if (chanid == currentValue) 193 setCurrentItem(nCount); 187 194 } 188 195 } 189 196 }