Skip to content

Commit

Permalink
[coreSubs] fix: select service list if no subs are found
Browse files Browse the repository at this point in the history
  • Loading branch information
amet committed Dec 2, 2013
1 parent 64e5d10 commit cf85bdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/video/dialogs/GUIDialogSubtitles.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit cf85bdb

Please sign in to comment.