EXT-8662 FIXED Crash on renaming incomplete inventory items.

I couldn't reproduce this problem, but from what I've seen in the crash
reporter, this is a very old bug affecting viewers 1.2x and 2.x.
When user tries to rename an incomplete inventory item, viewer crashes.

The fix is to disallow renaming incomplete items.

Reviewed by Seraph at https://codereview.productengine.com/secondlife/r/857/

--HG--
branch : product-engine
meow-7.2.2
Vadim Savchuk 2010-08-13 18:13:37 +03:00
parent 44adcdecd0
commit 482d3abc3c
1 changed files with 6 additions and 0 deletions

View File

@ -1270,6 +1270,12 @@ BOOL LLItemBridge::isItemRenameable() const
{
return FALSE;
}
if (!item->isFinished()) // EXT-8662
{
return FALSE;
}
return (item->getPermissions().allowModifyBy(gAgent.getID()));
}
return FALSE;