summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-10-03 13:33:19 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-10-03 13:33:19 +0300
commit20e78bb88ebe0a5416f3fb272afe9455aa756869 (patch)
tree176d1b5feadd7e87271f8b7572f1899a2912d9cf /indra/newview
parentac184e1ca77fc5085487925f74aaa6826f39870e (diff)
SL-9780 FIXED [EEP] Environment gets stuck on region environment after closing Region/Estate floater
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelenvironment.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp
index ecd67ff8af..4ab09e7118 100644
--- a/indra/newview/llpanelenvironment.cpp
+++ b/indra/newview/llpanelenvironment.cpp
@@ -170,7 +170,7 @@ void LLPanelEnvironmentInfo::onVisibilityChange(BOOL new_visibility)
}
gIdleCallbacks.deleteFunction(onIdlePlay, this);
- LLFloaterEditExtDayCycle *dayeditor = getEditFloater();
+ LLFloaterEditExtDayCycle *dayeditor = getEditFloater(false);
if (mCommitConnection.connected())
mCommitConnection.disconnect();
@@ -179,7 +179,10 @@ void LLPanelEnvironmentInfo::onVisibilityChange(BOOL new_visibility)
if (dayeditor->isDirty())
dayeditor->refresh();
else
+ {
dayeditor->closeFloater();
+ mEditFloater.markDead();
+ }
}
}