MAINT-1204 Fix for crash on selecting a texture anywhere other than the build tools.

meow-7.2.2
Dave Parks 2012-06-27 17:16:59 -05:00
parent 8a7fa77f23
commit 7f38f620fd
1 changed files with 4 additions and 1 deletions

View File

@ -819,7 +819,10 @@ void LLFloaterTexturePicker::onSelectionChange(const std::deque<LLFolderViewItem
mNoCopyTextureSelected = FALSE;
if (itemp)
{
mTextureSelectedCallback(itemp);
if (!mTextureSelectedCallback.empty())
{
mTextureSelectedCallback(itemp);
}
if (!itemp->getPermissions().allowCopyBy(gAgent.getID()))
{
mNoCopyTextureSelected = TRUE;