Ticket #13204: videosource.cpp.patch

File videosource.cpp.patch, 1.6 KB (added by klaas.de.waal@…, 3 years ago)

patch for Network ID entry field

  • mythtv/libs/libmythtv/videosource.cpp

    diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp
    index c935ac2785..dd0675a1e2 100644
    a b class CaptureCardTextEditSetting : public MythUITextEditSetting 
    359359    }
    360360};
    361361
    362 class DVBNetID : public MythUISpinBoxSetting
     362class DVBNetID : public MythUITextEditSetting
    363363{
    364364  public:
    365365    DVBNetID(const VideoSource &parent, signed int value, signed int min_val) :
    366         MythUISpinBoxSetting(new VideoSourceDBStorage(this, parent, "dvb_nit_id"),
    367                              min_val, 0xffff, 1)
    368     {
    369        setLabel(QObject::tr("Network ID"));
    370        //: Network_ID is the name of an identifier in the DVB's Service
    371        //: Information standard specification.
    372        setHelpText(QObject::tr("If your provider has asked you to configure a "
    373                                "specific network identifier (Network_ID), "
    374                                "enter it here. Leave it at -1 otherwise."));
    375        setValue(value);
     366        MythUITextEditSetting(new VideoSourceDBStorage(this, parent, "dvb_nit_id"))
     367    {
     368        Q_UNUSED(value);
     369        setLabel(QObject::tr("Network ID"));
     370
     371        //: Network_ID is the name of an identifier in the DVB's Service
     372        //: Information standard specification.
     373        setHelpText(QObject::tr("If your provider has asked you to configure a "
     374                                "specific network identifier (Network_ID), "
     375                                "enter it here. Leave it at -1 otherwise."));
     376        setValue(min_val);
    376377    };
    377378};
    378379