diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 888b607bfb..cd0b3dbd0c 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -377,17 +377,17 @@ void LLMenuParcelObserver::changed() LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); if (gMenuLand && parcel) { - if (!mLandBuyPassHandle.isDead()) - { - LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); - static_cast<LLMenuItemCallGL*>(mLandBuyPassHandle.get())->setEnabled(LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID() == gAgent.getID())); - } - - if (!mLandBuyHandle.isDead()) - { - bool buyable = enable_buy_land(NULL); - static_cast<LLMenuItemCallGL*>(mLandBuyHandle.get())->setEnabled(buyable); - } + if (!mLandBuyPassHandle.isDead()) + { + LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); + static_cast<LLMenuItemCallGL*>(mLandBuyPassHandle.get())->setEnabled(LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID() == gAgent.getID())); + } + + if (!mLandBuyHandle.isDead()) + { + bool buyable = enable_buy_land(NULL); + static_cast<LLMenuItemCallGL*>(mLandBuyHandle.get())->setEnabled(buyable); + } } } |