Skip to content

Commit

Permalink
CGUIEditControl: only handle GUI_MSG_SET_TEXT if the control is focus…
Browse files Browse the repository at this point in the history
…ed or is the receiver
  • Loading branch information
Montellese committed Dec 2, 2012
1 parent 0a4df7b commit 2efa3c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/guilib/GUIEditControl.cpp
Expand Up @@ -93,7 +93,8 @@ bool CGUIEditControl::OnMessage(CGUIMessage &message)
{
m_smsTimer.Stop();
}
else if (message.GetMessage() == GUI_MSG_SET_TEXT)
else if (message.GetMessage() == GUI_MSG_SET_TEXT &&
((message.GetControlId() <= 0 && HasFocus()) || (message.GetControlId() == GetID())))
{
SetLabel2(message.GetLabel());
UpdateText();
Expand Down

0 comments on commit 2efa3c0

Please sign in to comment.