Avoid erroneously creating 'About Land' instance. Also avoid issuing 'ParcelPropertiesRequest' excessively.
This commit is contained in:
@@ -3973,7 +3973,8 @@ bool LLAgent::teleportCore(bool is_local)
|
|||||||
LLFloaterWorldMap::hide();
|
LLFloaterWorldMap::hide();
|
||||||
|
|
||||||
// hide land floater too - it'll be out of date
|
// hide land floater too - it'll be out of date
|
||||||
LLFloaterLand::hideInstance();
|
if (LLFloaterLand::findInstance())
|
||||||
|
LLFloaterLand::hideInstance();
|
||||||
|
|
||||||
LLViewerParcelMgr::getInstance()->deselectLand();
|
LLViewerParcelMgr::getInstance()->deselectLand();
|
||||||
LLViewerMediaFocus::getInstance()->clearFocus();
|
LLViewerMediaFocus::getInstance()->clearFocus();
|
||||||
|
|||||||
@@ -257,7 +257,9 @@ LLFloaterLand::~LLFloaterLand()
|
|||||||
// public
|
// public
|
||||||
void LLFloaterLand::refresh()
|
void LLFloaterLand::refresh()
|
||||||
{
|
{
|
||||||
if (LLViewerParcelMgr::getInstance()->selectionEmpty())
|
if (!instanceVisible())
|
||||||
|
return;
|
||||||
|
if (LLViewerParcelMgr::getInstance()->selectionEmpty() && mParcel->getParcel() == NULL)
|
||||||
LLViewerParcelMgr::getInstance()->selectParcelAt(gAgent.getPositionGlobal());
|
LLViewerParcelMgr::getInstance()->selectParcelAt(gAgent.getPositionGlobal());
|
||||||
mPanelGeneral->refresh();
|
mPanelGeneral->refresh();
|
||||||
mPanelObjects->refresh();
|
mPanelObjects->refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user