From af6a992d43bb45857fb7928f5f3860ebacc432c4 Mon Sep 17 00:00:00 2001 From: Patrick Sapinski Date: Mon, 28 Feb 2011 08:22:41 -0500 Subject: fix for AO from Emerald --- linden/indra/newview/floaterao.cpp | 11 +++++++++++ linden/indra/newview/floaterao.h | 1 + 2 files changed, 12 insertions(+) diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp index cfad0fb..d880722 100644 --- a/linden/indra/newview/floaterao.cpp +++ b/linden/indra/newview/floaterao.cpp @@ -601,6 +601,8 @@ void LLFloaterAO::updateLayout(LLFloaterAO* floater) } } +BOOL LLFloaterAO::fullfetch = FALSE; + void LLFloaterAO::init() { mAOStands.clear(); @@ -695,6 +697,15 @@ void LLFloaterAO::init() success = TRUE; } } + }else + { + //static BOOL startedfetch = FALSE; + if(fullfetch == FALSE) + { + fullfetch = TRUE; + //no choice, can't move the AO till we find it, should only have to happen once + gInventory.startBackgroundFetch(); + } } } } diff --git a/linden/indra/newview/floaterao.h b/linden/indra/newview/floaterao.h index cf8ee22..ed60140 100644 --- a/linden/indra/newview/floaterao.h +++ b/linden/indra/newview/floaterao.h @@ -66,6 +66,7 @@ public: static void show(void*); static void init(); + static BOOL fullfetch; static void onClickToggleAO(LLUICtrl *, void*); static void onClickToggleSits(LLUICtrl *, void*); -- cgit v1.1