aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterwater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterwater.cpp')
-rw-r--r--linden/indra/newview/llfloaterwater.cpp26
1 files changed, 19 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterwater.cpp b/linden/indra/newview/llfloaterwater.cpp
index d2ea74e..7e2f188 100644
--- a/linden/indra/newview/llfloaterwater.cpp
+++ b/linden/indra/newview/llfloaterwater.cpp
@@ -316,14 +316,26 @@ LLFloaterWater* LLFloaterWater::instance()
316} 316}
317void LLFloaterWater::show() 317void LLFloaterWater::show()
318{ 318{
319 LLFloaterWater* water = instance(); 319 if (!sWaterMenu)
320 water->syncMenu(); 320 {
321 321 LLFloaterWater* water = instance();
322 // comment in if you want the menu to rebuild each time 322 water->syncMenu();
323 //LLUICtrlFactory::getInstance()->buildFloater(water, "floater_water.xml");
324 //water->initCallbacks();
325 323
326 water->open(); 324 // comment in if you want the menu to rebuild each time
325 //LLUICtrlFactory::getInstance()->buildFloater(water, "floater_water.xml");
326 //water->initCallbacks();
327 }
328 else
329 {
330 if (sWaterMenu->getVisible())
331 {
332 sWaterMenu->close();
333 }
334 else
335 {
336 sWaterMenu->open();
337 }
338 }
327} 339}
328 340
329bool LLFloaterWater::isOpen() 341bool LLFloaterWater::isOpen()