Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CGUIEditControl: only handle GUI_MSG_SET_TEXT if the control is focus…

…ed or is the receiver
  • Loading branch information...
commit 2efa3c0c1b56dd44d33606c5676ff1872f531ab0 1 parent 0a4df7b
Sascha Montellese Montellese authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/guilib/GUIEditControl.cpp
3  xbmc/guilib/GUIEditControl.cpp
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.