Ticket #12332: 20181220_12332_visible-persistent.patch

File 20181220_12332_visible-persistent.patch, 1.1 KB (added by Klaas de Waal, 5 years ago)
  • mythtv/libs/libmythtv/channelutil.cpp

    diff --git a/mythtv/libs/libmythtv/channelutil.cpp b/mythtv/libs/libmythtv/channelutil.cpp
    index 6adb9a1481..22f7785cf7 100644
    a b void ChannelUtil::UpdateInsertInfoFromDB(ChannelInsertInfo &chan) 
    16361636{
    16371637    MSqlQuery query(MSqlQuery::InitCon());
    16381638    query.prepare(
    1639         "SELECT xmltvid, useonairguide "
     1639        "SELECT xmltvid, useonairguide, visible "
    16401640        "FROM channel "
    16411641        "WHERE chanid = :ID");
    16421642    query.bindValue(":ID", chan.channel_id);
    void ChannelUtil::UpdateInsertInfoFromDB(ChannelInsertInfo &chan) 
    16511651    {
    16521652        QString xmltvid = query.value(0).toString();
    16531653        bool useeit     = query.value(1).toInt();
     1654        bool visible    = query.value(2).toInt();
    16541655
    16551656        if (!xmltvid.isEmpty())
    16561657        {
    void ChannelUtil::UpdateInsertInfoFromDB(ChannelInsertInfo &chan) 
    16611662            chan.xmltvid = xmltvid;
    16621663            chan.use_on_air_guide = useeit;
    16631664        }
     1665
     1666        chan.hidden = !visible;
    16641667    }
    16651668}
    16661669