<div class="gmail_quote">On Thu, Sep 15, 2011 at 1:44 PM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com" target="_blank">mtdean@thirdcontact.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 09/15/2011 12:15 PM, Jerry Rubinow wrote:<br>
<div>> On Thu, Sep 15, 2011 at 12:06 PM, Stuart Morgan wrote:<br>
>> On Thursday 15 Sep 2011 07:44:51 Jerry Rubinow wrote:<br>
>>> Would a patch be accepted which trimmed off trailing whitespace in the<br>
>>> channel callsigns before doing the comparison for merging channels in the<br>
>>> program guide?<br>
>> Would it not be easier in the long term to trim the whitespace at the time<br>
>> the<br>
>> callsign is inserted into the database instead of all the places that it's<br>
>> read back from the database?<br>
>><br>
>> A one-off DB update could address the existing instances of<br>
>> trailing/leading<br>
>> whitespace.<br>
<br>
</div>Ah, yeah, I misread it thinking he was asking about fixing the callsigns<br>
in the editors so they're put in the database correctly. But, yeah, I<br>
agree it should be fixed upon insert--meaning we only need a fix for the<br>
4 channel editors (mythtv-setup, frontend, MythWeb, and HTTP setup).</blockquote><div><br></div><div>I started looking at mythtv-setup, channeleditor.cpp to be specific. I see where it reads the DB and populates the UI with the channel info, but I don't see how edited info gets back into the DB. Background: lots of C++ experience, not so much with QT, some DB work, enough to puzzle my way through understanding a query.</div>
<div><br></div><div>-Jerry</div></div>