From d228a12f4574e649e302b96c415d4fac40c6e7c3 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 1 Nov 2022 22:01:45 +0200 Subject: SL-18448 Fixed exit condition --- indra/newview/llmaterialeditor.cpp | 4 ++-- 1 file 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(); } -- cgit v1.2.3