From 4422f10a9a97e0ace447e49d3b2105b297b54f5f Mon Sep 17 00:00:00 2001 From: Paul Guslisty Date: Wed, 9 Dec 2009 16:59:38 +0200 Subject: Fixed low bug EXT - 2688 (Viewer crashes if exit from disconnected viewer with opened Communicate floater) --HG-- branch : product-engine --- indra/newview/llfloaterchat.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview/llfloaterchat.cpp') diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index 57bb93d81a..94d4fb9b32 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -142,6 +142,10 @@ BOOL LLFloaterChat::postBuild() void LLFloaterChat::updateConsoleVisibility() { + if(gDisconnected) + { + return; + } // determine whether we should show console due to not being visible gConsole->setVisible( !isInVisibleChain() // are we not in part of UI being drawn? || isMinimized() // are we minimized? -- cgit v1.2.3 From c597a1eb1cd9e1a30a8e29e3d1bf357c3e6ce90c Mon Sep 17 00:00:00 2001 From: Paul Guslisty Date: Wed, 9 Dec 2009 17:56:08 +0200 Subject: Fixed build --HG-- branch : product-engine --- indra/newview/llfloaterchat.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llfloaterchat.cpp') diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index 94d4fb9b32..b9e0f928f1 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -41,6 +41,7 @@ // project include #include "llagent.h" +#include "llappviewer.h" #include "llbutton.h" #include "llcheckboxctrl.h" #include "llcombobox.h" -- cgit v1.2.3