summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-01 22:01:45 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-01 22:23:45 +0200
commitd228a12f4574e649e302b96c415d4fac40c6e7c3 (patch)
tree1bb42332df6d5d9899f1b582ebc2346b34308522 /indra/newview
parent8c5c07d30749f2abeb475c37b81f9cf089721a1e (diff)
SL-18448 Fixed exit condition
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llmaterialeditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp
index 71499ae97b..9b1c06d313 100644
--- a/indra/newview/llmaterialeditor.cpp
+++ b/indra/newview/llmaterialeditor.cpp
@@ -424,11 +424,11 @@ BOOL LLMaterialEditor::postBuild()
void LLMaterialEditor::onClickCloseBtn(bool app_quitting)
{
- if (app_quitting)
+ if (app_quitting || mIsOverride)
{
closeFloater(app_quitting);
}
- else if (!mIsOverride)
+ else
{
onClickCancel();
}