diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-09-07 17:08:24 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-09-07 17:08:24 +0300 |
commit | 2f81ce5cbdea05efe98a81c02c7d0ab775b5d9f1 (patch) | |
tree | 220e14ecc53d8c7f145de1d599eda1659de0b45a /indra | |
parent | f30425abc2324c8e9d7cc9280f1705fdd3528e06 (diff) |
SL-18100 FIXED Chat log disappears if translation service is turned on at splash screen
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatertranslationsettings.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp index b1316e386d..8bf48a811a 100644 --- a/indra/newview/llfloatertranslationsettings.cpp +++ b/indra/newview/llfloatertranslationsettings.cpp @@ -289,7 +289,10 @@ void LLFloaterTranslationSettings::onBtnOK() gSavedSettings.setString("TranslationService", getSelectedService()); gSavedSettings.setString("BingTranslateAPIKey", getEnteredBingKey()); gSavedSettings.setString("GoogleTranslateAPIKey", getEnteredGoogleKey()); - (LLFloaterReg::getTypedInstance<LLFloaterIMNearbyChat>("nearby_chat"))-> - showTranslationCheckbox(LLTranslate::isTranslationConfigured()); + LLFloaterIMNearbyChat* nearby_chat = LLFloaterReg::findTypedInstance<LLFloaterIMNearbyChat>("nearby_chat"); + if (nearby_chat) + { + nearby_chat->showTranslationCheckbox(LLTranslate::isTranslationConfigured()); + } closeFloater(false); } |