Ticket #13234: 20180904_1233_hidden_focus_bug.patch

File 20180904_1233_hidden_focus_bug.patch, 1.6 KB (added by Peter Bennett, 3 years ago)

UI Hidden Focus Bug.

  • mythtv/libs/libmythui/mythscreentype.cpp

    diff --git a/mythtv/libs/libmythui/mythscreentype.cpp b/mythtv/libs/libmythui/mythscreentype.cpp
    index d0b80aa..1709262 100644
    a b MythUIType *MythScreenType::GetFocusWidget(void) const 
    129129
    130130bool MythScreenType::SetFocusWidget(MythUIType *widget)
    131131{
    132     if (!widget || !widget->IsVisible())
     132    if (!widget || !widget->IsVisible(true))
    133133    {
    134134        QMap<int, MythUIType *>::iterator it = m_FocusWidgetList.begin();
    135135        MythUIType *current;
    bool MythScreenType::SetFocusWidget(MythUIType *widget) 
    138138        {
    139139            current = *it;
    140140
    141             if (current->CanTakeFocus() && current->IsVisible())
     141            if (current->CanTakeFocus() && current->IsVisible(true))
    142142            {
    143143                widget = current;
    144144                break;
    bool MythScreenType::NextPrevWidgetFocus(bool up) 
    188188            current = *it;
    189189
    190190            if ((looped || reachedCurrent) &&
    191                 current->IsVisible() && current->IsEnabled())
     191                current->IsVisible(true) && current->IsEnabled())
    192192                return SetFocusWidget(current);
    193193
    194194            if (current == m_CurrentFocusWidget)
    bool MythScreenType::NextPrevWidgetFocus(bool up) 
    216216            current = *it;
    217217
    218218            if ((looped || reachedCurrent) &&
    219                 current->IsVisible() && current->IsEnabled())
     219                current->IsVisible(true) && current->IsEnabled())
    220220                return SetFocusWidget(current);
    221221
    222222            if (current == m_CurrentFocusWidget)