diff options
Diffstat (limited to 'linden/indra/newview/llfloaternewim.cpp')
-rw-r--r-- | linden/indra/newview/llfloaternewim.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaternewim.cpp b/linden/indra/newview/llfloaternewim.cpp index 2fa2b51..1adb37c 100644 --- a/linden/indra/newview/llfloaternewim.cpp +++ b/linden/indra/newview/llfloaternewim.cpp | |||
@@ -74,8 +74,15 @@ BOOL LLFloaterNewIM::postBuild() | |||
74 | childSetAction("start_btn", &LLFloaterNewIM::onStart, this); | 74 | childSetAction("start_btn", &LLFloaterNewIM::onStart, this); |
75 | childSetAction("close_btn", &LLFloaterNewIM::onClickClose, this); | 75 | childSetAction("close_btn", &LLFloaterNewIM::onClickClose, this); |
76 | mSelectionList = LLViewerUICtrlFactory::getNameListByName(this, "user_list"); | 76 | mSelectionList = LLViewerUICtrlFactory::getNameListByName(this, "user_list"); |
77 | mSelectionList->setDoubleClickCallback(&LLFloaterNewIM::onStart); | 77 | if (mSelectionList) |
78 | mSelectionList->setCallbackUserData(this); | 78 | { |
79 | mSelectionList->setDoubleClickCallback(&LLFloaterNewIM::onStart); | ||
80 | mSelectionList->setCallbackUserData(this); | ||
81 | } | ||
82 | else | ||
83 | { | ||
84 | llwarns << "LLViewerUICtrlFactory::getNameListByName() returned NULL for 'user_list'" << llendl; | ||
85 | } | ||
79 | sOnlineDescriptor = childGetValue("online_descriptor").asString(); | 86 | sOnlineDescriptor = childGetValue("online_descriptor").asString(); |
80 | sNameFormat = childGetValue("name_format").asString(); | 87 | sNameFormat = childGetValue("name_format").asString(); |
81 | setDefaultBtn("start_btn"); | 88 | setDefaultBtn("start_btn"); |