[mythtv-commits] Ticket #9173: Duplicate Recording Groups in Schedule Editor

MythTV mythtv at cvs.mythtv.org
Tue Nov 2 22:46:09 UTC 2010


#9173: Duplicate Recording Groups in Schedule Editor
------------------------------------------------+---------------------------
 Reporter:  jason.chambers@…                    |            Type:  patch           
   Status:  new                                 |        Priority:  minor           
Milestone:  unknown                             |       Component:  MythTV - General
  Version:  0.24-fixes                          |        Severity:  medium          
 Keywords:                                      |   Ticket locked:  0               
------------------------------------------------+---------------------------
 The list of recording groups under ''Storage Options'' on the ''Schedule
 Editor'' page can contain duplicate entries.

 This is because the list is retrieved by running `"SELECT DISTINCT
 recgroup FROM recorded"` (recorded programmes) and also `"SELECT DISTINCT
 recgroup FROM record"` (recording rules).

 Therefore if you have a recording asssigned to a non-default recording
 group and you have a recording rule also using this group you get two
 entries for the same group in the list.

 The attached patch keeps both these queries in case they return non-
 identical lists, but calls `QStringList::removeDuplicates()` afterwards to
 make the list unique.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/9173>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list