Commit c031e61f authored by NiranV's avatar NiranV

Fixed: Environment Editors getting out of sync when a preset is changed...

Fixed: Environment Editors getting out of sync when a preset is changed outside of the Fixed Environment window while its open.
parent 2b3ca1f1
......@@ -188,7 +188,7 @@ void LLFloaterFixedEnvironment::onOpen(const LLSD& key)
mIsLocalEdit = !mInventoryItem;
updateEditEnvironment();
//syncronizeTabs();
//ssyncronizeTabs();
populatePresetsList();
refresh();
}
......@@ -202,7 +202,12 @@ void LLFloaterFixedEnvironment::onFocusReceived()
{
if (isInVisibleChain())
{
mPreviousSettings = mSettings;
updateEditEnvironment();
if (mPreviousSettings != mSettings)
{
syncronizeTabs();
}
}
}
......
......@@ -90,6 +90,7 @@ class LLFloaterFixedEnvironment : public LLFloater
LLComboBox * mTxtName;
LLSettingsBase::ptr_t mSettings;
LLSettingsBase::ptr_t mPreviousSettings;
virtual void doImportFromDisk() = 0;
virtual void doApplyCreateNewInventory(std::string settings_name, const LLSettingsBase::ptr_t &settings);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment