diff options
Diffstat (limited to 'linden/indra/newview/llfloaternewim.cpp')
-rw-r--r-- | linden/indra/newview/llfloaternewim.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloaternewim.cpp b/linden/indra/newview/llfloaternewim.cpp index c4af6a7..6363b4e 100644 --- a/linden/indra/newview/llfloaternewim.cpp +++ b/linden/indra/newview/llfloaternewim.cpp | |||
@@ -68,8 +68,6 @@ BOOL LLFloaterNewIM::postBuild() | |||
68 | requires("start_btn", WIDGET_TYPE_BUTTON); | 68 | requires("start_btn", WIDGET_TYPE_BUTTON); |
69 | requires("close_btn", WIDGET_TYPE_BUTTON); | 69 | requires("close_btn", WIDGET_TYPE_BUTTON); |
70 | requires("user_list", WIDGET_TYPE_NAME_LIST); | 70 | requires("user_list", WIDGET_TYPE_NAME_LIST); |
71 | requires("online_descriptor", WIDGET_TYPE_TEXT_BOX); | ||
72 | requires("name_format", WIDGET_TYPE_TEXT_BOX); | ||
73 | 71 | ||
74 | if (checkRequirements()) | 72 | if (checkRequirements()) |
75 | { | 73 | { |
@@ -85,8 +83,8 @@ BOOL LLFloaterNewIM::postBuild() | |||
85 | { | 83 | { |
86 | llwarns << "LLViewerUICtrlFactory::getNameListByName() returned NULL for 'user_list'" << llendl; | 84 | llwarns << "LLViewerUICtrlFactory::getNameListByName() returned NULL for 'user_list'" << llendl; |
87 | } | 85 | } |
88 | sOnlineDescriptor = childGetValue("online_descriptor").asString(); | 86 | sOnlineDescriptor = getString("online_descriptor"); |
89 | sNameFormat = childGetValue("name_format").asString(); | 87 | sNameFormat = getString("name_format"); |
90 | setDefaultBtn("start_btn"); | 88 | setDefaultBtn("start_btn"); |
91 | return TRUE; | 89 | return TRUE; |
92 | } | 90 | } |
@@ -152,10 +150,7 @@ void LLFloaterNewIM::addGroup(const LLUUID& uuid, void* data, BOOL bold, BOOL on | |||
152 | 150 | ||
153 | void LLFloaterNewIM::addAgent(const LLUUID& uuid, void* data, BOOL online) | 151 | void LLFloaterNewIM::addAgent(const LLUUID& uuid, void* data, BOOL online) |
154 | { | 152 | { |
155 | char first[DB_FIRST_NAME_BUF_SIZE]; /* Flawfinder: ignore */ | 153 | std::string first, last; |
156 | first[0] = '\0'; | ||
157 | char last[DB_LAST_NAME_BUF_SIZE]; /* Flawfinder: ignore */ | ||
158 | last[0] = '\0'; | ||
159 | gCacheName->getName(uuid, first, last); | 154 | gCacheName->getName(uuid, first, last); |
160 | LLUIString fullname = sNameFormat; | 155 | LLUIString fullname = sNameFormat; |
161 | fullname.setArg("[FIRST]", first); | 156 | fullname.setArg("[FIRST]", first); |
@@ -232,7 +227,7 @@ void LLFloaterNewIM::onClickClose(void *userdata) | |||
232 | BOOL LLFloaterNewIM::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) | 227 | BOOL LLFloaterNewIM::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) |
233 | { | 228 | { |
234 | BOOL handled = LLFloater::handleKeyHere(key, mask, called_from_parent); | 229 | BOOL handled = LLFloater::handleKeyHere(key, mask, called_from_parent); |
235 | if (getVisible() && mEnabled && !called_from_parent) | 230 | if (getVisible() && getEnabled() && !called_from_parent) |
236 | { | 231 | { |
237 | if ( KEY_ESCAPE == key ) | 232 | if ( KEY_ESCAPE == key ) |
238 | { | 233 | { |