Ticket #1945: diseqc-switch-sql.patch

File diseqc-switch-sql.patch, 1.0 KB (added by yeasah@…, 18 years ago)

Fixes broken switch code -- a rename from subtype -> type was only partially completed.

  • libs/libmythtv/diseqc.cpp

     
    11331133
    11341134bool DiSEqCDevSwitch::Store(void) const
    11351135{
    1136     QString subtype = SwitchTypeToString(m_type);
     1136    QString type = SwitchTypeToString(m_type);
    11371137    MSqlQuery query(MSqlQuery::InitCon());
    11381138
    11391139    // insert new or update old
     
    11571157            "   description,   subtype,         switch_ports) "
    11581158            "VALUES "
    11591159            " (:PARENT,       :ORDINAL,         'switch', "
    1160             "  :DESC,         :SUBTYPE,         :PORTS)");
     1160            "  :DESC,         :TYPE,            :PORTS)");
    11611161    }
    11621162
    11631163    if (m_parent)
     
    11651165
    11661166    query.bindValue(":ORDINAL", m_ordinal);
    11671167    query.bindValue(":DESC",    GetDescription());
    1168     query.bindValue(":SUBTYPE", subtype);
     1168    query.bindValue(":TYPE",    type);
    11691169    query.bindValue(":PORTS",   m_num_ports);
    11701170    query.bindValue(":DEVID",   GetDeviceID());
    11711171