Skip to content

Commit

Permalink
Warnings in checksetup.cpp only for real cards.
Browse files Browse the repository at this point in the history
Do only give a warning for the real capture card devices,
not for the additional slave tuners in a multirec configuration.
  • Loading branch information
kmdewaal committed Apr 25, 2019
1 parent 806eb64 commit ed70d1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/programs/mythtv-setup/checksetup.cpp
Expand Up @@ -177,7 +177,7 @@ bool checkChannelPresets(QStringList &probs)

MSqlQuery query(MSqlQuery::InitCon());

query.prepare("SELECT cardid, startchan, sourceid, inputname"
query.prepare("SELECT cardid, startchan, sourceid, inputname, parentid"
" FROM capturecard;");

if (!query.exec() || !query.isActive())
Expand All @@ -191,6 +191,11 @@ bool checkChannelPresets(QStringList &probs)
int cardid = query.value(0).toInt();
QString startchan = query.value(1).toString();
int sourceid = query.value(2).toInt();
int parentid = query.value(4).toInt();

// Warnings only for real devices
if (parentid != 0)
continue;

if (0 == sourceid)
{
Expand Down

0 comments on commit ed70d1c

Please sign in to comment.