diff options
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 065e429..d7fecfd 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -406,7 +406,9 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, | |||
406 | 406 | ||
407 | combo->setCommitCallback( &LLPanelGeneral::set_start_location ); | 407 | combo->setCommitCallback( &LLPanelGeneral::set_start_location ); |
408 | 408 | ||
409 | childSetCommitCallback("server_combo", onSelectServer, this); | 409 | LLComboBox* server_choice_combo = sInstance->getChild<LLComboBox>("server_combo"); |
410 | server_choice_combo->setCommitCallback(onSelectServer); | ||
411 | server_choice_combo->setFocusLostCallback(onServerComboLostFocus); | ||
410 | 412 | ||
411 | childSetAction("connect_btn", onClickConnect, this); | 413 | childSetAction("connect_btn", onClickConnect, this); |
412 | 414 | ||
@@ -1141,6 +1143,10 @@ void LLPanelLogin::onPassKey(LLLineEditor* caller, void* user_data) | |||
1141 | // static | 1143 | // static |
1142 | void LLPanelLogin::onSelectServer(LLUICtrl*, void*) | 1144 | void LLPanelLogin::onSelectServer(LLUICtrl*, void*) |
1143 | { | 1145 | { |
1146 | // *NOTE: The paramters for this method are ignored. | ||
1147 | // LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*) | ||
1148 | // calls this method. | ||
1149 | |||
1144 | // The user twiddled with the grid choice ui. | 1150 | // The user twiddled with the grid choice ui. |
1145 | // apply the selection to the grid setting. | 1151 | // apply the selection to the grid setting. |
1146 | LLString grid_label; | 1152 | LLString grid_label; |
@@ -1183,3 +1189,12 @@ void LLPanelLogin::onSelectServer(LLUICtrl*, void*) | |||
1183 | // grid changed so show new splash screen (possibly) | 1189 | // grid changed so show new splash screen (possibly) |
1184 | loadLoginPage(); | 1190 | loadLoginPage(); |
1185 | } | 1191 | } |
1192 | |||
1193 | void LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*) | ||
1194 | { | ||
1195 | LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); | ||
1196 | if(fe == combo) | ||
1197 | { | ||
1198 | onSelectServer(combo, NULL); | ||
1199 | } | ||
1200 | } | ||