WENG-1470 (Partial) Secondlife Login Screen Redesign - fixed bug with favorites button not being enabled even though Home was present in list

meow-7.2.2
Callum Prentice 2014-03-17 14:17:09 -07:00
parent 3c6e5d4a11
commit 0ea82ffbcc
1 changed files with 6 additions and 0 deletions

View File

@ -1022,6 +1022,12 @@ void LLPanelLogin::updateLoginButtons()
// last login button always enabled for this case
last_login_btn->setEnabled(true);
// double check status of favorites combo
LLComboBox* favorites_combo = getChild<LLComboBox>("start_location_combo");
unsigned int num_items = favorites_combo->getItemCount();
if ( num_items > 0 )
mFavoriteSelected = true;
// only turn on favorites login button if one is selected
fav_btn->setEnabled( mFavoriteSelected );