From 2bcef9312bc232ab4ff88a9e366aa071a0e2eb67 Mon Sep 17 00:00:00 2001
From: Vadim ProductEngine <vsavchuk@productengine.com>
Date: Tue, 25 Oct 2011 17:14:58 +0200
Subject: [PATCH] STORM-1577 WIP Don't reset the hint on click in a key input
 field if the field is disabled.

---
 indra/newview/llfloatertranslationsettings.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp
index ac4514b4386..959edff713f 100644
--- a/indra/newview/llfloatertranslationsettings.cpp
+++ b/indra/newview/llfloatertranslationsettings.cpp
@@ -241,7 +241,7 @@ void LLFloaterTranslationSettings::verifyKey(int service, const std::string& key
 void LLFloaterTranslationSettings::onEditorFocused(LLFocusableElement* control)
 {
 	LLLineEditor* editor = dynamic_cast<LLLineEditor*>(control);
-	if (editor)
+	if (editor && editor->hasTabStop()) // if enabled. getEnabled() doesn't work
 	{
 		if (editor->getTentative())
 		{
-- 
GitLab