Avoid erroneously creating 'About Land' instance. Also avoid issuing 'ParcelPropertiesRequest' excessively.

This commit is contained in:
Shyotl
2014-08-30 23:48:56 -05:00
parent afe573d2eb
commit c7e9430f99
2 changed files with 5 additions and 2 deletions

View File

@@ -257,7 +257,9 @@ LLFloaterLand::~LLFloaterLand()
// public
void LLFloaterLand::refresh()
{
if (LLViewerParcelMgr::getInstance()->selectionEmpty())
if (!instanceVisible())
return;
if (LLViewerParcelMgr::getInstance()->selectionEmpty() && mParcel->getParcel() == NULL)
LLViewerParcelMgr::getInstance()->selectParcelAt(gAgent.getPositionGlobal());
mPanelGeneral->refresh();
mPanelObjects->refresh();