summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterinventorysettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterinventorysettings.cpp')
-rw-r--r--indra/newview/llfloaterinventorysettings.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llfloaterinventorysettings.cpp b/indra/newview/llfloaterinventorysettings.cpp
index 612953b6df..62f76207a3 100644
--- a/indra/newview/llfloaterinventorysettings.cpp
+++ b/indra/newview/llfloaterinventorysettings.cpp
@@ -29,6 +29,7 @@
#include "llfloaterinventorysettings.h"
#include "llcolorswatch.h"
+#include "llviewercontrol.h"
LLFloaterInventorySettings::LLFloaterInventorySettings(const LLSD& key)
: LLFloater(key)
@@ -43,13 +44,17 @@ LLFloaterInventorySettings::~LLFloaterInventorySettings()
BOOL LLFloaterInventorySettings::postBuild()
{
getChild<LLUICtrl>("favorites_color")->setCommitCallback(boost::bind(&LLFloaterInventorySettings::updateColorSwatch, this));
+
+ bool enable_color = gSavedSettings.getBOOL("InventoryFavoritesColorText");
+ getChild<LLUICtrl>("favorites_swatch")->setEnabled(enable_color);
+
return TRUE;
}
void LLFloaterInventorySettings::updateColorSwatch()
{
- bool val = getChild<LLUICtrl>("favorites_color")->getEnabled();
- getChild<LLUICtrl>("favorites_color")->setEnabled(val);
+ bool val = getChild<LLUICtrl>("favorites_color")->getValue();
+ getChild<LLUICtrl>("favorites_swatch")->setEnabled(val);
}
void LLFloaterInventorySettings::applyUIColor(LLUICtrl* ctrl, const LLSD& param)