diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-03-08 10:10:59 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-03-08 10:10:59 -0500 | 
| commit | a7f02a3e51f07c657a0acd31637f46f74b30daf7 (patch) | |
| tree | c572c162ee7bec027971ca7a64f74032938b20a8 /indra/newview/lltoolbarview.cpp | |
| parent | cce59647a99648af63c96168c36e85563da40a1a (diff) | |
| parent | 55b2383f51ffabf7e95595df5d576f383d458ee1 (diff) | |
merge changes for 3.5.0-beta2
Diffstat (limited to 'indra/newview/lltoolbarview.cpp')
| -rw-r--r-- | indra/newview/lltoolbarview.cpp | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/lltoolbarview.cpp b/indra/newview/lltoolbarview.cpp index a29f58b319..b2318f9158 100644 --- a/indra/newview/lltoolbarview.cpp +++ b/indra/newview/lltoolbarview.cpp @@ -241,8 +241,9 @@ bool LLToolBarView::loadToolbars(bool force_default)  	LLXUIParser parser;  	if (!err)  	{ -	parser.readXUI(root, toolbar_set, toolbar_file); +	    parser.readXUI(root, toolbar_set, toolbar_file);  	} +  	if (!err && !toolbar_set.validateBlock())  	{  		llwarns << "Unable to validate toolbars from file: " << toolbar_file << llendl; @@ -254,8 +255,9 @@ bool LLToolBarView::loadToolbars(bool force_default)  		if (force_default)  		{  			llerrs << "Unable to load toolbars from default file : " << toolbar_file << llendl; -		return false; -	} +		    return false; +	    } +  		// Try to load the default toolbars  		return loadToolbars(true);  	} @@ -605,7 +607,7 @@ BOOL LLToolBarView::handleDragTool( S32 x, S32 y, const LLUUID& uuid, LLAssetTyp  BOOL LLToolBarView::handleDropTool( void* cargo_data, S32 x, S32 y, LLToolBar* toolbar)  {  	BOOL handled = FALSE; -	LLInventoryItem* inv_item = (LLInventoryItem*)cargo_data; +	LLInventoryObject* inv_item = static_cast<LLInventoryObject*>(cargo_data);  	LLAssetType::EType type = inv_item->getType();  	if (type == LLAssetType::AT_WIDGET)  | 
