Commit eafa4d3f authored by Testicular Slingshot's avatar Testicular Slingshot Committed by Rye Mutt
Browse files

Fix for issue #20. Also fixed first life about text editor not commiting when focus is lost.

parent 64d88e4a
......@@ -291,6 +291,7 @@ LLTextEditor::LLTextEditor(const LLTextEditor::Params& p) :
setText(p.default_text());
mParseOnTheFly = TRUE;
mParseHTML = p.read_only;
}
void LLTextEditor::initFromParams( const LLTextEditor::Params& p)
......@@ -2135,6 +2136,7 @@ void LLTextEditor::setEnabled(BOOL enabled)
bool read_only = !enabled;
if (read_only != mReadOnly)
{
mParseHTML = read_only;
//mReadOnly = read_only;
LLTextBase::setReadOnly(read_only);
updateSegments();
......
......@@ -38,6 +38,6 @@
right="-4"
bg_readonly_color="DkGray2"
text_readonly_color="White"
word_wrap="true"
parse_urls="true" />
commit_on_focus_lost="true"
word_wrap="true" />
</panel>
......@@ -158,8 +158,7 @@
bg_readonly_color="DkGray2"
text_readonly_color="White"
commit_on_focus_lost="true"
word_wrap="true"
parse_urls="true" />
word_wrap="true" />
<text
font="SansSerifSmall"
text_color="White_50"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment