From 7e458d1989ea06d06c64db4732619e03b59cf223 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Tue, 30 Mar 2010 23:39:25 -0700 Subject: Made the AO toggle and work like an actual menu check --- linden/indra/newview/floaterao.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'linden/indra/newview/floaterao.cpp') diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp index e3083d3..d8844d8 100644 --- a/linden/indra/newview/floaterao.cpp +++ b/linden/indra/newview/floaterao.cpp @@ -249,11 +249,25 @@ LLFloaterAO::~LLFloaterAO() void LLFloaterAO::show(void*) { if (!sInstance) - sInstance = new LLFloaterAO(); - updateLayout(sInstance); - init(); + { + sInstance = new LLFloaterAO(); + updateLayout(sInstance); + init(); + + sInstance->open(); + } + else + { + sInstance->close(); + } +} - sInstance->open(); +bool LLFloaterAO::getInstance() +{ + if (sInstance) + return true; + else + return false; } BOOL LLFloaterAO::postBuild() -- cgit v1.1