fixed problem with connecting on double click in the server browser. Closes #662

This commit is contained in:
oy 2011-05-05 01:56:31 +02:00
parent 193fb192c5
commit 5b2f5f0778

View file

@ -371,7 +371,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextItem(const void *pId, bool Selected)
{ {
gs_ListBoxDoneEvents = 1; gs_ListBoxDoneEvents = 1;
if(m_EnterPressed || (Input()->MouseDoubleClick() && UI()->ActiveItem() == pId)) if(m_EnterPressed || (UI()->ActiveItem() == pId && Input()->MouseDoubleClick()))
{ {
gs_ListBoxItemActivated = true; gs_ListBoxItemActivated = true;
UI()->SetActiveItem(0); UI()->SetActiveItem(0);