diff options
| author | Richard Linden <none@none> | 2010-09-23 16:45:48 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2010-09-23 16:45:48 -0700 | 
| commit | 054e023bfe311a60362472ccd0d2b482acea076e (patch) | |
| tree | a86b0c94270e19c86ec12b64b70f0c14b569dd3f | |
| parent | 568496eb323e575f9b4bed7866dec0aeef5d7eb4 (diff) | |
| parent | df25093a76b613ebffe9195c2d0ff4455f3514b3 (diff) | |
merge
| -rw-r--r-- | indra/newview/llviewernetwork.cpp | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/indra/newview/llviewernetwork.cpp b/indra/newview/llviewernetwork.cpp index 7f7c245717..b91e407c6d 100644 --- a/indra/newview/llviewernetwork.cpp +++ b/indra/newview/llviewernetwork.cpp @@ -304,7 +304,12 @@ void LLGridManager::initialize(const std::string& grid_file)  		addGrid(grid);		  	} -	gSavedSettings.getControl("CurrentGrid")->getSignal()->connect(boost::bind(&LLGridManager::updateIsInProductionGrid, this)); +	LLControlVariablePtr grid_control = gSavedSettings.getControl("CurrentGrid"); +	if (grid_control.notNull()) +	{ +		grid_control->getSignal()->connect(boost::bind(&LLGridManager::updateIsInProductionGrid, this)); +	} +  	// since above only triggers on changes, trigger the callback manually to initialize state  	updateIsInProductionGrid(); @@ -499,7 +504,8 @@ void LLGridManager::setGridChoice(const std::string& grid)  		addGrid(grid_data);		  	}  	mGrid = grid; -	gSavedSettings.setString("CurrentGrid", grid); +	gSavedSettings.setString("CurrentGrid", grid);  +	updateIsInProductionGrid();  }  std::string LLGridManager::getGridByLabel( const std::string &grid_label, bool case_sensitive) | 
