diff options
-rwxr-xr-x | indra/newview/llpanellogin.cpp | 10 | ||||
-rwxr-xr-x | indra/newview/skins/default/xui/en/panel_login.xml | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index fee240daa9..626340dcc9 100755 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -369,6 +369,10 @@ void LLPanelLogin::addFavoritesToStartLocation() { mShowFavorites = true; combo->add(label, value); + if ( LLStartUp::getStartSLURL().getSLURLString() == value) + { + combo->selectByValue(value); + } } } break; @@ -683,7 +687,6 @@ void LLPanelLogin::onUpdateStartSLURL(const LLSLURL& new_start_slurl) LL_DEBUGS("AppInit")<<new_start_slurl.asString()<<LL_ENDL; LLComboBox* location_combo = sInstance->getChild<LLComboBox>("start_location_combo"); - LLLineEditor* location_edit = sInstance->getChild<LLLineEditor>("location_edit"); /* * Determine whether or not the new_start_slurl modifies the grid. * @@ -715,7 +718,10 @@ void LLPanelLogin::onUpdateStartSLURL(const LLSLURL& new_start_slurl) } if ( new_start_slurl.getLocationString().length() ) { - location_edit->setValue(new_start_slurl.getLocationString()); + if (location_combo->getCurrentIndex() == -1) + { + location_combo->setLabel(new_start_slurl.getLocationString()); + } sInstance->mLocationLength = new_start_slurl.getLocationString().length(); sInstance->updateLoginButtons(); } diff --git a/indra/newview/skins/default/xui/en/panel_login.xml b/indra/newview/skins/default/xui/en/panel_login.xml index 4c1455574b..204d812250 100755 --- a/indra/newview/skins/default/xui/en/panel_login.xml +++ b/indra/newview/skins/default/xui/en/panel_login.xml @@ -80,7 +80,7 @@ width="165" /> <combo_box allow_text_entry="true" - control_name="NextLoginLocation" + control_name="NextLoginLocation" follows="left|top" label="My favorite places" height="32" @@ -92,7 +92,8 @@ width="175" combo_button.scale_image="true"> <combo_box.combo_editor - bg_image_always_focused="true"/> + bg_image_always_focused="true" + text_pad_left="8"/> <combo_box.item label="My last location" name="MyLastLocation" @@ -109,7 +110,7 @@ image_hover="PushButton_Login_Over" label="Log In" label_color="White" - font="SansSerifBold" + font="SansSerifMedium" name="connect_btn" enabled="true" width="120" |