Fixed illegal items in #AO folder not being moved to Lost + Found, patch by Holy Gavenkrantz, thanks. Fixes FIRE-5944

ziree 2012-05-24 13:24:23 +02:00
parent 4573c488db
commit 2c05f01793
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}