Ticket #13234: 20180409_1234_reset_button_bug.patch

File 20180409_1234_reset_button_bug.patch, 717 bytes (added by Peter Bennett, 6 years ago)

Fix Reset button bug

  • mythtv/libs/libmythui/mythuistatetype.cpp

    diff --git a/mythtv/libs/libmythui/mythuistatetype.cpp b/mythtv/libs/libmythui/mythuistatetype.cpp
    index eff0900..7778f8b 100644
    a b bool MythUIStateType::DisplayState(const QString &name) 
    9999    if (i != m_ObjectsByName.end())
    100100        m_CurrentState = i.value();
    101101    else
    102         m_CurrentState = NULL;
     102        return false;
    103103
    104104    if (m_CurrentState != old)
    105105    {
    void MythUIStateType::Clear() 
    202202 */
    203203void MythUIStateType::Reset()
    204204{
    205     if (!DisplayState("default"))
     205    if (!DisplayState("default") && !DisplayState("active"))
    206206    {
    207207        if (!DisplayState(None))
    208208        {