aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:46:01 -0500
committerJacek Antonelli2008-08-15 23:46:01 -0500
commitae88605f72ef43be7b619b8c1c11a508ebae5057 (patch)
treef27474fe2d1186124211e2a5b2ad31927a3ab5bc /linden/indra/newview/llpanellogin.cpp
parentSecond Life viewer sources 1.20.13 (diff)
downloadmeta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.zip
meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.gz
meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.bz2
meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.xz
Second Life viewer sources 1.20.14
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r--linden/indra/newview/llpanellogin.cpp17
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
1142void LLPanelLogin::onSelectServer(LLUICtrl*, void*) 1144void 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
1193void 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}