Skip to content
This repository
Browse code

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 authored December 03, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/guilib/GUIEditControl.cpp
3  xbmc/guilib/GUIEditControl.cpp
@@ -93,7 +93,8 @@ bool CGUIEditControl::OnMessage(CGUIMessage &message)
93 93
   {
94 94
     m_smsTimer.Stop();
95 95
   }
96  
-  else if (message.GetMessage() == GUI_MSG_SET_TEXT)
  96
+  else if (message.GetMessage() == GUI_MSG_SET_TEXT &&
  97
+          ((message.GetControlId() <= 0 && HasFocus()) || (message.GetControlId() == GetID())))
97 98
   {
98 99
     SetLabel2(message.GetLabel());
99 100
     UpdateText();

0 notes on commit 2efa3c0

Please sign in to comment.
Something went wrong with that request. Please try again.