SL-15729 Crash calling childSetEnabled
parent
573c23488f
commit
6de3a7f91d
|
|
@ -360,11 +360,14 @@ LLMenuParcelObserver::~LLMenuParcelObserver()
|
|||
void LLMenuParcelObserver::changed()
|
||||
{
|
||||
LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel();
|
||||
gMenuHolder->childSetEnabled("Land Buy Pass", LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID()== gAgent.getID()));
|
||||
|
||||
BOOL buyable = enable_buy_land(NULL);
|
||||
gMenuHolder->childSetEnabled("Land Buy", buyable);
|
||||
gMenuHolder->childSetEnabled("Buy Land...", buyable);
|
||||
if (gMenuHolder && parcel)
|
||||
{
|
||||
gMenuHolder->childSetEnabled("Land Buy Pass", LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID() == gAgent.getID()));
|
||||
|
||||
BOOL buyable = enable_buy_land(NULL);
|
||||
gMenuHolder->childSetEnabled("Land Buy", buyable);
|
||||
gMenuHolder->childSetEnabled("Buy Land...", buyable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue