EXT-7736 FIXED Reverted fix for EXT-2819 (crash in color picker).
Fix description:
Check getParentFloater result.
Note:
ColorsWatch have no parent Floater in EditWearable side-panel.
--HG--
branch : product-engine
meow-7.2.2
parent
d03338ee61
commit
9fbb349ec8
|
|
@ -338,7 +338,11 @@ void LLColorSwatchCtrl::showPicker(BOOL take_focus)
|
|||
if (!pickerp)
|
||||
{
|
||||
pickerp = new LLFloaterColorPicker(this, mCanApplyImmediately);
|
||||
//gFloaterView->getParentFloater(this)->addDependentFloater(pickerp);
|
||||
LLFloater* parent = gFloaterView->getParentFloater(this);
|
||||
if (parent)
|
||||
{
|
||||
parent->addDependentFloater(pickerp);
|
||||
}
|
||||
mPickerHandle = pickerp->getHandle();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue