Skip to content

Commit

Permalink
[coreSubs] fix manual search button after 618cff7
Browse files Browse the repository at this point in the history
  • Loading branch information
amet committed Feb 6, 2014
1 parent a4342cf commit 199d2dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xbmc/video/dialogs/GUIDialogSubtitles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ CGUIDialogSubtitles::~CGUIDialogSubtitles(void)

bool CGUIDialogSubtitles::OnMessage(CGUIMessage& message)
{
if (message.GetMessage() == GUI_MSG_CLICKED &&
(message.GetParam1() == ACTION_SELECT_ITEM ||
message.GetParam1() == ACTION_MOUSE_LEFT_CLICK))
if (message.GetMessage() == GUI_MSG_CLICKED)
{
int iControl = message.GetSenderId();
bool selectAction = (message.GetParam1() == ACTION_SELECT_ITEM ||
message.GetParam1() == ACTION_MOUSE_LEFT_CLICK);

if (iControl == CONTROL_SUBLIST)
if (selectAction && iControl == CONTROL_SUBLIST)
{
CGUIMessage msg(GUI_MSG_ITEM_SELECTED, GetID(), CONTROL_SUBLIST);
OnMessage(msg);
Expand All @@ -131,7 +131,7 @@ bool CGUIDialogSubtitles::OnMessage(CGUIMessage& message)
Download(*m_subtitles->Get(item));
return true;
}
else if (iControl == CONTROL_SERVICELIST)
else if (selectAction && iControl == CONTROL_SERVICELIST)
{
CGUIMessage msg(GUI_MSG_ITEM_SELECTED, GetID(), CONTROL_SERVICELIST);
OnMessage(msg);
Expand Down

0 comments on commit 199d2dd

Please sign in to comment.