diff options
| author | Mike Antipov <mantipov@productengine.com> | 2010-04-28 11:01:43 +0300 | 
|---|---|---|
| committer | Mike Antipov <mantipov@productengine.com> | 2010-04-28 11:01:43 +0300 | 
| commit | ee1c5729a8eb6b1d2553c591db3478cc0ac6d82e (patch) | |
| tree | 8e6a31b18db8cbb4a4027ee9c6456c4c035afe13 /indra/llui | |
| parent | 7d78440d9d3052ac81cee77199bca0f5414f2805 (diff) | |
| parent | 872b4d7ed0bd532e349d3c177a63d48e17d0bdb3 (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llflatlistview.cpp | 9 | ||||
| -rw-r--r-- | indra/llui/llflatlistview.h | 6 | 
2 files changed, 10 insertions, 5 deletions
| diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp index e0b2244654..ec247b25c3 100644 --- a/indra/llui/llflatlistview.cpp +++ b/indra/llui/llflatlistview.cpp @@ -1147,12 +1147,17 @@ LLFlatListViewEx::LLFlatListViewEx(const Params& p)  } -void LLFlatListViewEx::updateNoItemsMessage(bool items_filtered) +void LLFlatListViewEx::updateNoItemsMessage(const std::string& filter_string)  { +	bool items_filtered = !filter_string.empty();  	if (items_filtered)  	{  		// items were filtered -		setNoItemsCommentText(mNoFilteredItemsMsg); +		LLStringUtil::format_map_t args; +		args["[SEARCH_TERM]"] = LLURI::escape(filter_string); +		std::string text = mNoFilteredItemsMsg; +		LLStringUtil::format(text, args); +		setNoItemsCommentText(text);  	}  	else  	{ diff --git a/indra/llui/llflatlistview.h b/indra/llui/llflatlistview.h index f7d094f7e7..4f718ab0dc 100644 --- a/indra/llui/llflatlistview.h +++ b/indra/llui/llflatlistview.h @@ -470,10 +470,10 @@ protected:  	/**  	 * Applies a message for empty list depend on passed argument.  	 * -	 * @param items_filtered - if true message for filtered items will be set, otherwise for -	 * completely empty list. +	 * @param filter_string - if is not empty, message for filtered items will be set, otherwise for +	 * completely empty list. Value of filter string will be passed as search_term in SLURL.  	 */ -	void updateNoItemsMessage(bool items_filtered); +	void updateNoItemsMessage(const std::string& filter_string);  private:  	std::string mNoFilteredItemsMsg; | 
