aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaternewim.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llfloaternewim.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaternewim.cpp11
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");