From 1474f8c9a288dbc475ae8c482ee9961a39e94c0a Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Fri, 16 Sep 2011 00:38:17 +0300 Subject: STORM-1577 WIP Addressing review feedback. * Don't enable the "Verify" button if use just moves cursor in the API key input field. * Fixed copy&paste error in unit tests. * Fixed a typo: LLBingTranslarionHandler * Added Doxygen comments to lltranslate.h. --- indra/newview/llfloatertranslationsettings.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'indra/newview/llfloatertranslationsettings.cpp') diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp index ac3e7ac8fa..ac4514b438 100644 --- a/indra/newview/llfloatertranslationsettings.cpp +++ b/indra/newview/llfloatertranslationsettings.cpp @@ -253,14 +253,18 @@ void LLFloaterTranslationSettings::onEditorFocused(LLFocusableElement* control) void LLFloaterTranslationSettings::onBingKeyEdited() { - mBingAPIKeyEditor->setTentative(FALSE); - setBingVerified(false, false); + if (mBingAPIKeyEditor->isDirty()) + { + setBingVerified(false, false); + } } void LLFloaterTranslationSettings::onGoogleKeyEdited() { - mGoogleAPIKeyEditor->setTentative(FALSE); - setGoogleVerified(false, false); + if (mGoogleAPIKeyEditor->isDirty()) + { + setGoogleVerified(false, false); + } } void LLFloaterTranslationSettings::onBtnBingVerify() -- cgit v1.2.3