From b9e48bbdc7fc57ce132c320756078128c72da8e5 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 21 Aug 2014 15:05:09 +0200 Subject: [PATCH] Fix radar name format dropdown list in Vintage skin having no effect until relog --- indra/newview/fsradar.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/indra/newview/fsradar.cpp b/indra/newview/fsradar.cpp index b396dc49dc..535070631c 100644 --- a/indra/newview/fsradar.cpp +++ b/indra/newview/fsradar.cpp @@ -101,6 +101,8 @@ FSRadar::FSRadar() : // Use the callback from LLAvatarNameCache here or we might update the names too early! LLAvatarNameCache::addUseDisplayNamesCallback(boost::bind(&FSRadar::updateNames, this)); gSavedSettings.getControl("NameTagShowUsernames")->getSignal()->connect(boost::bind(&FSRadar::updateNames, this)); + + gSavedSettings.getControl("RadarNameFormat")->getSignal()->connect(boost::bind(&FSRadar::updateNames, this)); } FSRadar::~FSRadar() @@ -832,12 +834,6 @@ void FSRadar::onRadarNameFmtClicked(const LLSD& userdata) { gSavedSettings.setU32("RadarNameFormat", FSRADAR_NAMEFORMAT_USERNAME_DISPLAYNAME); } - - FSRadar* instance = FSRadar::getInstance(); - if (instance) - { - instance->updateNames(); - } } //static