summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2014-06-10 19:51:11 +0300
committerandreykproductengine <akleshchev@productengine.com>2014-06-10 19:51:11 +0300
commitdb977d6df80e975e7bc7e1e95a93b77dac3a5e6b (patch)
tree0c4f15e408f10461b70623bbd804108caf212731
parentb5e3899a40f475642d7e74ab9f7c357e29f03b97 (diff)
MAINT-4135 FIXED Text input field is not disabled in group chat window for user who cannot enter text chat
-rw-r--r--indra/newview/llfloaterimsession.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llfloaterimsession.cpp b/indra/newview/llfloaterimsession.cpp
index f61359f87a..e63ba33626 100644
--- a/indra/newview/llfloaterimsession.cpp
+++ b/indra/newview/llfloaterimsession.cpp
@@ -927,8 +927,7 @@ void LLFloaterIMSession::onInputEditorFocusReceived( LLFocusableElement* caller,
// Allow enabling the LLFloaterIMSession input editor only if session can accept text
LLIMModel::LLIMSession* im_session =
LLIMModel::instance().findIMSession(self->mSessionID);
- //TODO: While disabled lllineeditor can receive focus we need to check if it is enabled (EK)
- if( im_session && im_session->mTextIMPossible && self->mInputEditor->getEnabled())
+ if( im_session && im_session->mTextIMPossible && !self->mInputEditor->getReadOnly())
{
//in disconnected state IM input editor should be disabled
self->mInputEditor->setEnabled(!gDisconnected);