[mythtv] Minor [Patch] for dvb problems

John Pullan mythtv at pullan.org
Sat Jan 31 12:36:13 EST 2004


On Sat, 2004-01-31 at 01:12, Kenneth Aafløy wrote:
<snip>

> > Channel editor in setup program:
> > When i select a video source in the channel editor so i only see
> > the channels for a specific source and when i have finished 
> > editig a channel the channel list shows all channels again but
> > the "Video Source:" box still displays the source i selected
> > previously.
> 
> I'll look at this one later, along with the focus issue.
> 

This is caused by the load function being called each time you "do"
something in the channel editor. The simple fix is to modify load to
call fillselection with the current source id, which starts off at
empty.

Index: channeleditor.h
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/channeleditor.h,v
retrieving revision 1.3
diff -u -r1.3 channeleditor.h
--- channeleditor.h     11 Jan 2004 17:07:37 -0000      1.3
+++ channeleditor.h     31 Jan 2004 17:08:33 -0000
@@ -53,7 +53,7 @@
     void save(QSqlDatabase* _db) { (void)_db; };
     void load(QSqlDatabase* _db) {
         db = _db;
-        fillSelections();
+        fillSelections(currentSourceID);
     };
  
     QString getSourceID() { return currentSourceID; };

-- 
John Pullan <john at pullan.org>
-- 
John



More information about the mythtv-dev mailing list