BOOL FloaterGridManager::isGridComboDirty() { BOOL user_picked = FALSE; if (!FloaterGridManager::getInstance()) { llwarns << "Attempted getServer with no login view shown" << llendl; } else { LLComboBox* combo = FloaterGridManager::getInstance()->getChild<LLComboBox>("server_combo"); user_picked = combo->isDirty(); } return user_picked; }
// static BOOL LLPanelLogin::isGridComboDirty() { BOOL user_picked = FALSE; if (!sInstance) { llwarns << "Attempted getServer with no login view shown" << llendl; } else { LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); user_picked = combo->isDirty(); } return user_picked; }
// static BOOL FSPanelLogin::areCredentialFieldsDirty() { if (!sInstance) { LL_WARNS() << "Attempted getServer with no login view shown" << LL_ENDL; } else { LLComboBox* combo = sInstance->getChild<LLComboBox>("username_combo"); if(combo && combo->isDirty()) { return true; } LLLineEditor* ctrl = sInstance->getChild<LLLineEditor>("password_edit"); if(ctrl && ctrl->isDirty()) { return true; } } return false; }
// static BOOL LLPanelLogin::areCredentialFieldsDirty() { if (!sInstance) { llwarns << "Attempted getServer with no login view shown" << llendl; } else { std::string username = sInstance->getChild<LLUICtrl>("username_combo")->getValue().asString(); LLStringUtil::trim(username); std::string password = sInstance->getChild<LLUICtrl>("password_edit")->getValue().asString(); LLComboBox* combo = sInstance->getChild<LLComboBox>("username_combo"); if(combo && combo->isDirty()) { return true; } LLLineEditor* ctrl = sInstance->getChild<LLLineEditor>("password_edit"); if(ctrl && ctrl->isDirty()) { return true; } } return false; }