Permalink
Browse files

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

  • Loading branch information...
amet committed Dec 2, 2013
1 parent 64e5d10 commit cf85bdba7e382b5f58f7309605b8971925d0c3fe
Showing with 6 additions and 1 deletion.
  1. +6 −1 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);
}

0 comments on commit cf85bdb

Please sign in to comment.