Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[coreSubs] fix: select service list if no subs are found

  • Loading branch information...
commit cf85bdba7e382b5f58f7309605b8971925d0c3fe 1 parent 64e5d10
@amet amet authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 xbmc/video/dialogs/GUIDialogSubtitles.cpp
View
7 xbmc/video/dialogs/GUIDialogSubtitles.cpp
@@ -189,11 +189,16 @@ void CGUIDialogSubtitles::Process(unsigned int currentTime, CDirtyRegionList &di
m_updateSubsList = false;
}
- if (!m_subtitles->IsEmpty() && !GetFocusedControl())
+ if (!m_subtitles->IsEmpty())
{ // set focus to the list
CGUIMessage msg(GUI_MSG_SETFOCUS, GetID(), CONTROL_SUBLIST);
OnMessage(msg);
}
+ else
+ { // set focus to the service list if no subs are found
+ CGUIMessage msg(GUI_MSG_SETFOCUS, GetID(), CONTROL_SERVICELIST);
+ OnMessage(msg);
+ }
}
CGUIDialog::Process(currentTime, dirtyregions);
}
Please sign in to comment.
Something went wrong with that request. Please try again.