From 0aa5e0bb8820b35d68dee093ea2a3d8686231264 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sun, 5 Apr 2020 14:56:35 -0500 Subject: [PATCH] Close 'default permissions' window on client disconnect. Nonfunctional after that point anyhow. Also applying setting crashes due to null region after dc. --- indra/newview/llappviewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 6b4b3aff9..704c2cb3c 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -4832,11 +4832,14 @@ void LLAppViewer::disconnectViewer() // floater_sound_preview.xml // floater_animation_preview.xml // files. + + // A more generic mechanism would be nice.. LLFloater* fl = static_cast(*it); if (fl && (fl->getName() == "Image Preview" || fl->getName() == "Sound Preview" || fl->getName() == "Animation Preview" + || fl->getName() == "perm prefs" )) { floaters_to_close.push_back(fl);