aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnotify.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-05-24 02:59:02 -0500
committerJacek Antonelli2009-05-24 02:59:08 -0500
commit811454f47ea1f3c5cb8971f0fed0959b18bd0747 (patch)
tree1b8689df2dc8857cdc5a956a5233d5bf94b5c8d7 /linden/indra/newview/llnotify.cpp
parentSecond Life viewer sources 1.23.0-RC (diff)
downloadmeta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.zip
meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.gz
meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.bz2
meta-impy-811454f47ea1f3c5cb8971f0fed0959b18bd0747.tar.xz
Second Life viewer sources 1.23.1-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llnotify.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llnotify.cpp b/linden/indra/newview/llnotify.cpp
index 3c3f824..da0029a 100644
--- a/linden/indra/newview/llnotify.cpp
+++ b/linden/indra/newview/llnotify.cpp
@@ -297,12 +297,12 @@ LLNotifyBox::LLNotifyBox(LLNotificationPtr notification,
297 continue; 297 continue;
298 } 298 }
299 299
300 addButton(form_element["name"].asString(), TRUE, form_element["default"].asBoolean()); 300 addButton(form_element["name"].asString(), form_element["text"].asString(), TRUE, form_element["default"].asBoolean());
301 } 301 }
302 302
303 if (mNumButtons == 0) 303 if (mNumButtons == 0)
304 { 304 {
305 addButton("OK", FALSE, TRUE); 305 addButton("OK", "OK", FALSE, TRUE);
306 mAddedDefaultBtn = TRUE; 306 mAddedDefaultBtn = TRUE;
307 } 307 }
308 308
@@ -324,7 +324,7 @@ LLNotifyBox::~LLNotifyBox()
324} 324}
325 325
326// virtual 326// virtual
327LLButton* LLNotifyBox::addButton(const std::string& name, BOOL is_option, BOOL is_default) 327LLButton* LLNotifyBox::addButton(const std::string& name, const std::string& label, BOOL is_option, BOOL is_default)
328{ 328{
329 // make caution notification buttons slightly narrower 329 // make caution notification buttons slightly narrower
330 // so that 3 of them can fit without overlapping the "next" button 330 // so that 3 of them can fit without overlapping the "next" button
@@ -365,6 +365,7 @@ LLButton* LLNotifyBox::addButton(const std::string& name, BOOL is_option, BOOL i
365 365
366 366
367 btn = new LLButton(name, btn_rect, "", onClickButton, userdata); 367 btn = new LLButton(name, btn_rect, "", onClickButton, userdata);
368 btn->setLabel(label);
368 btn->setFont(font); 369 btn->setFont(font);
369 370
370 if (mIsCaution) 371 if (mIsCaution)