Ticket #4045: libmythtv-channeleditor-videosourceFilterFix-04102007.diff

File libmythtv-channeleditor-videosourceFilterFix-04102007.diff, 868 bytes (added by Matthew Wire <devel@…>, 13 years ago)

Simple fix for "(All)" filter in channel editor

  • libs/libmythtv/channeleditor.cpp

     
    119119
    120120    QString querystr = "SELECT channel.name,channum,chanid ";
    121121
    122     if ((currentSourceID == "") || (currentSourceID == "Unassigned"))
     122    if ((currentSourceID == "") || (currentSourceID == "Unassigned")
     123                                || (currentSourceID == "(All)"))
    123124    {
    124125        querystr += ",videosource.name FROM channel "
    125126                    "LEFT JOIN videosource ON "
     
    194195    SourceSetting() : ComboBoxSetting(this)
    195196    {
    196197        setLabel(QObject::tr("Video Source"));
    197         addSelection(QObject::tr("(All)"),"");
     198        addSelection(QObject::tr("(All)"),"(All)");
    198199    };
    199200
    200201    void load()