Improve upon previous commit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2013-07-05 22:41:25 +00:00
parent d5168a6f4f
commit 2719079977

View File

@ -146,8 +146,7 @@ void TextBoxWidget::unfocused(const int playerID, Widget* new_focus)
setWithinATextBox(false);
if (new_focus != NULL)
GUIEngine::getGUIEnv()->setFocus(new_focus->getIrrlichtElement());
GUIEngine::getGUIEnv()->removeFocus(m_element);
}
// -----------------------------------------------------------------------------