From daf9c53595ebad3561b2a0ea00d9da2f697189d0 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Wed, 7 Sep 2011 19:38:40 +0300 Subject: STORM-1577 WIP Fix: disable both line editors if machine translation is disabled. --- indra/newview/llfloatertranslationsettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp index 107205aed3..3e77578997 100644 --- a/indra/newview/llfloatertranslationsettings.cpp +++ b/indra/newview/llfloatertranslationsettings.cpp @@ -128,8 +128,8 @@ void LLFloaterTranslationSettings::updateControlsEnabledState() getChild("google_api_key_label")->setEnabled(on); mGoogleAPIKeyEditor->setEnabled(on); - mBingAPIKeyEditor->setEnabled(service == "bing"); - mGoogleAPIKeyEditor->setEnabled(service == "google"); + mBingAPIKeyEditor->setEnabled(on && service == "bing"); + mGoogleAPIKeyEditor->setEnabled(on && service == "google"); } void LLFloaterTranslationSettings::onBtnOK() -- cgit v1.2.3