Attempt to fix blank region name in region restarting floater.

This commit is contained in:
Inusaito Sayori
2014-09-22 21:23:48 -04:00
parent 6a4c1f6ac6
commit b77268b0e3

View File

@@ -102,7 +102,7 @@ LLFloaterRegionRestarting::LLFloaterRegionRestarting(const LLSD& key) :
{
//buildFromFile("floater_region_restarting.xml");
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_region_restarting.xml");
mName = key["NAME"].asString(); // <alchemy/>
mName = key.has("NAME") ? key["NAME"].asString() : gAgent.getRegion()->getName(); // <alchemy/>
center();
}