Opened 13 years ago

Closed 13 years ago

#9173 closed patch (Fixed)

Duplicate Recording Groups in Schedule Editor

Reported by: jason.chambers@… Owned by: stuartm
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.24-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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.

Attachments (1)

duplicate-recgroups.patch (301 bytes) - added by jason.chambers@… 13 years ago.
Removes duplicates from list after querying DB

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by jason.chambers@…

Attachment: duplicate-recgroups.patch added

Removes duplicates from list after querying DB

comment:1 Changed 13 years ago by robertm

Owner: set to stuartm
Status: newassigned

comment:2 Changed 13 years ago by stuartm

Resolution: Fixed
Status: assignedclosed

(In [f5b92811d]) Remove duplicate recgroups from the list in the schedule editor.

Fixes #9173

Signed-off-by: Stuart Morgan <smorgan@…>

Note: See TracTickets for help on using tickets.