diff options
author | McCabe Maxsted | 2010-09-03 09:07:10 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-03 09:07:10 -0700 |
commit | 3e87997886458a95ec8814ad9d320bd088f33829 (patch) | |
tree | 17e3ecada2df561a2b03b9aab050e056a0ce7be0 /linden/indra/newview/llfloaterwindlight.cpp | |
parent | Made IM History feature enabled cross-platform (#182). Also fixes #250 (diff) | |
download | meta-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 '')
-rw-r--r-- | linden/indra/newview/llfloaterwindlight.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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 | ||
895 | bool LLFloaterWindLight::saveNotecardCallback(const LLSD& notification, const LLSD& response) | 895 | bool LLFloaterWindLight::saveNotecardCallback(const LLSD& notification, const LLSD& response) |