From 2c05f01793d0dab135479d68ddb91ae30ca3efcd Mon Sep 17 00:00:00 2001 From: ziree Date: Thu, 24 May 2012 13:24:23 +0200 Subject: [PATCH] Fixed illegal items in #AO folder not being moved to Lost + Found, patch by Holy Gavenkrantz, thanks. Fixes FIRE-5944 --- indra/newview/aoengine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/newview/aoengine.cpp b/indra/newview/aoengine.cpp index e570beb054..23b00a6b3f 100644 --- a/indra/newview/aoengine.cpp +++ b/indra/newview/aoengine.cpp @@ -734,6 +734,8 @@ BOOL AOEngine::findForeignItems(const LLUUID& uuid) const } // count backwards in case we have to remove items + BOOL wasProtected=gSavedPerAccountSettings.getBOOL("ProtectAOFolders"); + gSavedPerAccountSettings.setBOOL("ProtectAOFolders",FALSE); for(S32 index=items->count()-1;index>=0;index--) { BOOL move=FALSE; @@ -764,6 +766,7 @@ BOOL AOEngine::findForeignItems(const LLUUID& uuid) const lldebugs << item->getName() << " moved to lost and found!" << llendl; } } + gSavedPerAccountSettings.setBOOL("ProtectAOFolders",wasProtected); return moved; }