aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-03 09:07:10 -0700
committerMcCabe Maxsted2010-09-03 09:07:10 -0700
commit3e87997886458a95ec8814ad9d320bd088f33829 (patch)
tree17e3ecada2df561a2b03b9aab050e056a0ce7be0 /linden/indra
parentMade IM History feature enabled cross-platform (#182). Also fixes #250 (diff)
downloadmeta-impy-3e87997886458a95ec8814ad9d320bd088f33829.zip
meta-impy-3e87997886458a95ec8814ad9d320bd088f33829.tar.gz
meta-impy-3e87997886458a95ec8814ad9d320bd088f33829.tar.bz2
meta-impy-3e87997886458a95ec8814ad9d320bd088f33829.tar.xz
Fixed the advanced sky/water flyout buttons not working correctly when just clicked
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llfloaterwater.cpp34
-rw-r--r--linden/indra/newview/llfloaterwindlight.cpp34
2 files changed, 34 insertions, 34 deletions
diff --git a/linden/indra/newview/llfloaterwater.cpp b/linden/indra/newview/llfloaterwater.cpp
index 05bc001..c4b6d0d 100644
--- a/linden/indra/newview/llfloaterwater.cpp
+++ b/linden/indra/newview/llfloaterwater.cpp
@@ -649,23 +649,7 @@ void LLFloaterWater::onSavePreset(LLUICtrl* ctrl, void* userData)
649 return; 649 return;
650 } 650 }
651 651
652 if (ctrl->getValue().asString() == "save_disk_item") 652 if (ctrl->getValue().asString() == "save_inventory_item")
653 {
654 LLWaterParamManager::instance()->mCurParams.mName =
655 comboBox->getSelectedItemLabel();
656
657 // check to see if it's a default and shouldn't be overwritten
658 std::set<std::string>::iterator sIt = sDefaultPresets.find(
659 comboBox->getSelectedItemLabel());
660 if(sIt != sDefaultPresets.end() && !gSavedSettings.getBOOL("WaterEditPresets"))
661 {
662 LLNotifications::instance().add("WLNoEditDefault");
663 return;
664 }
665
666 LLNotifications::instance().add("WLSavePresetAlert", LLSD(), LLSD(), saveAlertCallback);
667 }
668 else if (ctrl->getValue().asString() == "save_inventory_item")
669 { 653 {
670 // Check if this is already a notecard. 654 // Check if this is already a notecard.
671 if(LLWaterParamManager::instance()->mCurParams.mInventoryID.notNull()) 655 if(LLWaterParamManager::instance()->mCurParams.mInventoryID.notNull())
@@ -696,6 +680,22 @@ void LLFloaterWater::onSavePreset(LLUICtrl* ctrl, void* userData)
696 680
697 } 681 }
698 } 682 }
683 else
684 {
685 LLWaterParamManager::instance()->mCurParams.mName =
686 comboBox->getSelectedItemLabel();
687
688 // check to see if it's a default and shouldn't be overwritten
689 std::set<std::string>::iterator sIt = sDefaultPresets.find(
690 comboBox->getSelectedItemLabel());
691 if(sIt != sDefaultPresets.end() && !gSavedSettings.getBOOL("WaterEditPresets"))
692 {
693 LLNotifications::instance().add("WLNoEditDefault");
694 return;
695 }
696
697 LLNotifications::instance().add("WLSavePresetAlert", LLSD(), LLSD(), saveAlertCallback);
698 }
699} 699}
700 700
701bool LLFloaterWater::saveNotecardCallback(const LLSD& notification, const LLSD& response) 701bool LLFloaterWater::saveNotecardCallback(const LLSD& notification, const LLSD& response)
diff --git a/linden/indra/newview/llfloaterwindlight.cpp b/linden/indra/newview/llfloaterwindlight.cpp
index ae94d3a..be3c1fd 100644
--- a/linden/indra/newview/llfloaterwindlight.cpp
+++ b/linden/indra/newview/llfloaterwindlight.cpp
@@ -843,23 +843,7 @@ void LLFloaterWindLight::onSavePreset(LLUICtrl* ctrl, void* userData)
843 return; 843 return;
844 } 844 }
845 845
846 if (ctrl->getValue().asString() == "save_disk_item") 846 if (ctrl->getValue().asString() == "save_inventory_item")
847 {
848 // check to see if it's a default and shouldn't be overwritten
849 std::set<std::string>::iterator sIt = sDefaultPresets.find(
850 comboBox->getSelectedItemLabel());
851 if(sIt != sDefaultPresets.end() && !gSavedSettings.getBOOL("SkyEditPresets"))
852 {
853 LLNotifications::instance().add("WLNoEditDefault");
854 return;
855 }
856
857 LLWLParamManager::instance()->mCurParams.mName =
858 comboBox->getSelectedItemLabel();
859
860 LLNotifications::instance().add("WLSavePresetAlert", LLSD(), LLSD(), saveAlertCallback);
861 }
862 else if (ctrl->getValue().asString() == "save_inventory_item")
863 { 847 {
864 // Check if this is already a notecard. 848 // Check if this is already a notecard.
865 if(LLWLParamManager::instance()->mCurParams.mInventoryID.notNull()) 849 if(LLWLParamManager::instance()->mCurParams.mInventoryID.notNull())
@@ -890,6 +874,22 @@ void LLFloaterWindLight::onSavePreset(LLUICtrl* ctrl, void* userData)
890 874
891 } 875 }
892 } 876 }
877 else
878 {
879 // check to see if it's a default and shouldn't be overwritten
880 std::set<std::string>::iterator sIt = sDefaultPresets.find(
881 comboBox->getSelectedItemLabel());
882 if(sIt != sDefaultPresets.end() && !gSavedSettings.getBOOL("SkyEditPresets"))
883 {
884 LLNotifications::instance().add("WLNoEditDefault");
885 return;
886 }
887
888 LLWLParamManager::instance()->mCurParams.mName =
889 comboBox->getSelectedItemLabel();
890
891 LLNotifications::instance().add("WLSavePresetAlert", LLSD(), LLSD(), saveAlertCallback);
892 }
893} 893}
894 894
895bool LLFloaterWindLight::saveNotecardCallback(const LLSD& notification, const LLSD& response) 895bool LLFloaterWindLight::saveNotecardCallback(const LLSD& notification, const LLSD& response)