diff options
| author | Wolfpup Lowenhar <wolfpup67@earthlink.net> | 2010-11-01 22:25:02 -0400 | 
|---|---|---|
| committer | Wolfpup Lowenhar <wolfpup67@earthlink.net> | 2010-11-01 22:25:02 -0400 | 
| commit | a0cf976dd3d02f6f48a6def77aab98f68303e90b (patch) | |
| tree | 9cb0dbefd494452ec342d3b351a40dbeb112cd89 /indra | |
| parent | a4bb2b8bddcc58a99611bc88993543b9c1384b3b (diff) | |
| parent | 0640f65276ed3ed6a444f4a4dc016d030bc3d31a (diff) | |
STORM-255 : Merge from viewer-development
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/lluistring.h | 10 | ||||
| -rw-r--r-- | indra/newview/llappearancemgr.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llpanelgroupgeneral.cpp | 3 | 
3 files changed, 14 insertions, 13 deletions
| diff --git a/indra/llui/lluistring.h b/indra/llui/lluistring.h index eff2467bf0..4faa0e070e 100644 --- a/indra/llui/lluistring.h +++ b/indra/llui/lluistring.h @@ -58,10 +58,12 @@ class LLUIString  public:  	// These methods all perform appropriate argument substitution  	// and modify mOrig where appropriate -        LLUIString() : mArgs(NULL), mNeedsResult(false), mNeedsWResult(false) {} +	LLUIString() : mArgs(NULL), mNeedsResult(false), mNeedsWResult(false) {}  	LLUIString(const std::string& instring, const LLStringUtil::format_map_t& args);  	LLUIString(const std::string& instring) : mArgs(NULL) { assign(instring); } +	~LLUIString() { delete mArgs; } +  	void assign(const std::string& instring);  	LLUIString& operator=(const std::string& s) { assign(s); return *this; } @@ -81,14 +83,14 @@ public:  	void clear();  	void clearArgs() { if (mArgs) mArgs->clear(); } -	 +  	// These utility functions are included for text editing.  	// They do not affect mOrig and do not perform argument substitution  	void truncate(S32 maxchars);  	void erase(S32 charidx, S32 len);  	void insert(S32 charidx, const LLWString& wchars);  	void replace(S32 charidx, llwchar wc); -	 +  private:  	// something changed, requiring reformatting of strings  	void dirty(); @@ -100,7 +102,7 @@ private:  	void updateResult() const;  	void updateWResult() const;  	LLStringUtil::format_map_t& getArgs(); -	 +  	std::string mOrig;  	mutable std::string mResult;  	mutable LLWString mWResult; // for displaying diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index ed5e8ceee3..62074ddcd5 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2204,12 +2204,11 @@ void LLAppearanceMgr::updateIsDirty()  		base_outfit = catp->getUUID();  	} -	if(base_outfit.isNull()) -	{ -		// no outfit link found, display "unsaved outfit" -		mOutfitIsDirty = true; -	} -	else +	// Set dirty to "false" if no base outfit found to disable "Save" +	// and leave only "Save As" enabled in My Outfits. +	mOutfitIsDirty = false; + +	if (base_outfit.notNull())  	{  		LLIsOfAssetType collector = LLIsOfAssetType(LLAssetType::AT_LINK); @@ -2248,8 +2247,6 @@ void LLAppearanceMgr::updateIsDirty()  				return;  			}  		} - -		mOutfitIsDirty = false;  	}  } @@ -2635,6 +2632,7 @@ void LLAppearanceMgr::dumpItemArray(const LLInventoryModel::item_array_t& items,  LLAppearanceMgr::LLAppearanceMgr():  	mAttachmentInvLinkEnabled(false),  	mOutfitIsDirty(false), +	mOutfitLocked(false),  	mIsInUpdateAppearanceFromCOF(false)  {  	LLOutfitObserver& outfit_observer = LLOutfitObserver::instance(); diff --git a/indra/newview/llpanelgroupgeneral.cpp b/indra/newview/llpanelgroupgeneral.cpp index 80df420a4e..ec340dc258 100644 --- a/indra/newview/llpanelgroupgeneral.cpp +++ b/indra/newview/llpanelgroupgeneral.cpp @@ -692,7 +692,8 @@ void LLPanelGroupGeneral::updateMembers()  	LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID);  	if (!mListVisibleMembers || !gdatap  -		|| !gdatap->isMemberDataComplete()) +		|| !gdatap->isMemberDataComplete() +		|| gdatap->mMembers.empty())  	{  		return;  	} | 
