aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelmsgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelmsgs.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanelmsgs.cpp b/linden/indra/newview/llpanelmsgs.cpp
index f25d477..3f5314c 100644
--- a/linden/indra/newview/llpanelmsgs.cpp
+++ b/linden/indra/newview/llpanelmsgs.cpp
@@ -88,14 +88,33 @@ void LLPanelMsgs::buildLists()
88 row["columns"][1]["font"] = "SANSSERIF_SMALL"; 88 row["columns"][1]["font"] = "SANSSERIF_SMALL";
89 row["columns"][1]["width"] = 160; 89 row["columns"][1]["width"] = 160;
90 } 90 }
91 item = mDisabledPopups->addElement(row, ADD_SORTED); 91 if (mDisabledPopups)
92 {
93 item = mDisabledPopups->addElement(row,
94 ADD_SORTED);
95 }
96 else
97 {
98 llwarns << "(ignore) but also (!mDisabledPopups)" << llendl;
99 }
92 } 100 }
93 else 101 else
94 { 102 {
95 item = mEnabledPopups->addElement(row, ADD_SORTED); 103 if (mEnabledPopups)
104 {
105 item = mEnabledPopups->addElement(row,
106 ADD_SORTED);
107 }
108 else
109 {
110 llwarns << "(!ignore) but also (!mEnabledPopups)" << llendl;
111 }
96 } 112 }
97 113
98 item->setUserdata((void*)&iter->first); 114 if (item)
115 {
116 item->setUserdata((void*)&iter->first);
117 }
99 } 118 }
100} 119}
101 120