diff options
| -rwxr-xr-x | indra/llvfs/lldiriterator.cpp | 23 | ||||
| -rwxr-xr-x | indra/newview/lltexturectrl.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/skins/default/xui/en/floater_region_debug_console.xml | 55 | 
3 files changed, 45 insertions, 35 deletions
diff --git a/indra/llvfs/lldiriterator.cpp b/indra/llvfs/lldiriterator.cpp index 460d2a8b4f..229608231c 100755 --- a/indra/llvfs/lldiriterator.cpp +++ b/indra/llvfs/lldiriterator.cpp @@ -119,16 +119,25 @@ bool LLDirIterator::Impl::next(std::string &fname)  	fs::directory_iterator end_itr; // default construction yields past-the-end  	bool found = false; -	while (mIter != end_itr && !found) + +	// Check if path is a directory. +	try  	{ -		boost::smatch match; -		std::string name = mIter->path().filename().string(); -		if (found = boost::regex_match(name, match, mFilterExp)) +		while (mIter != end_itr && !found)  		{ -			fname = name; +			boost::smatch match; +			std::string name = mIter->path().filename().string(); +			if (found = boost::regex_match(name, match, mFilterExp)) +			{ +				fname = name; +			} + +			++mIter;  		} - -		++mIter; +	} +	catch (const fs::filesystem_error& e) +	{ +		llwarns << e.what() << llendl;  	}  	return found; diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 4300cafb6b..ea837c9127 100755 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -820,7 +820,7 @@ void LLFloaterTexturePicker::onSelectionChange(const std::deque<LLFolderViewItem  			{  				mNoCopyTextureSelected = TRUE;  			} -			mImageAssetID = itemp->getAssetUUID(); +			setImageID(itemp->getAssetUUID());  			mViewModel->setDirty(); // *TODO: shouldn't we be using setValue() here?  			if (user_action && mCanPreview)  			{ diff --git a/indra/newview/skins/default/xui/en/floater_region_debug_console.xml b/indra/newview/skins/default/xui/en/floater_region_debug_console.xml index 7c7ee2df4c..99b812a880 100755 --- a/indra/newview/skins/default/xui/en/floater_region_debug_console.xml +++ b/indra/newview/skins/default/xui/en/floater_region_debug_console.xml @@ -10,33 +10,34 @@    width="600"    default_tab_group="1">    <text_editor -  left="10" -   type="string" -   length="1" -   follows="left|right|bottom" -   font="Monospace" -   height="366" -   width="576" -   ignore_tab="false" -   layout="topleft" -   max_length="65536" -   name="region_debug_console_output" -   show_line_numbers="false"  -   word_wrap="true" -   track_end="true" -   read_only="true"> +    left="10" +    type="string" +    length="1" +    follows="all" +    font="Monospace" +    height="366" +    width="576" +    ignore_tab="false" +    layout="topleft" +    max_length="65536" +    name="region_debug_console_output" +    show_line_numbers="false"  +    word_wrap="true" +    track_end="true" +    read_only="true">    </text_editor>    <line_editor -   border_style="line" -   border_thickness="1" -   tab_group="1"  -   follows="left|top|right" -   font="SansSerif" -   height="19" -   layout="topleft" -   bottom_delta="20" -   max_length="127" -   name="region_debug_console_input" -   top_delta="0" -   width="576" /> +    border_style="line" +    border_thickness="1" +    tab_group="1" +    follows="left|right|bottom" +    font="SansSerif" +    height="19" +    layout="topleft" +    bottom_delta="20" +    max_length="127" +    name="region_debug_console_input" +    top_delta="0" +    width="576"> +  </line_editor>  </floater>  | 
