diff --git a/indra/newview/llfloaterregionrestarting.cpp b/indra/newview/llfloaterregionrestarting.cpp index 899216b96633539479801a786ff1b9a956209f1a..003ed488c681431ddc3761ba66a11297165e9d8e 100644 --- a/indra/newview/llfloaterregionrestarting.cpp +++ b/indra/newview/llfloaterregionrestarting.cpp @@ -44,6 +44,7 @@ LLFloaterRegionRestarting::LLFloaterRegionRestarting(const LLSD& key) : LLFloaterRegionRestarting::~LLFloaterRegionRestarting() { + mRegionChangedConnection.disconnect(); } BOOL LLFloaterRegionRestarting::postBuild() @@ -58,7 +59,7 @@ BOOL LLFloaterRegionRestarting::postBuild() refresh(); - gAgent.addRegionChangedCallback(boost::bind(&LLFloaterRegionRestarting::regionChange, this)); + mRegionChangedConnection = gAgent.addRegionChangedCallback(boost::bind(&LLFloaterRegionRestarting::regionChange, this)); return TRUE; } diff --git a/indra/newview/llfloaterregionrestarting.h b/indra/newview/llfloaterregionrestarting.h index fef0dcddfe743a9169f24581ab4d0a4515a1d72d..6ff067e0a82206c1b319a0775a4d965f258cb5de 100644 --- a/indra/newview/llfloaterregionrestarting.h +++ b/indra/newview/llfloaterregionrestarting.h @@ -48,6 +48,8 @@ class LLFloaterRegionRestarting : public LLFloater, public LLEventTimer virtual void regionChange(); std::string mName; + + boost::signals2::connection mRegionChangedConnection; }; #endif // LL_LLFLOATERREGIONRESTARTING_H diff --git a/indra/newview/skins/default/xui/en/floater_region_restarting.xml b/indra/newview/skins/default/xui/en/floater_region_restarting.xml index dcb5fcc41dec437df7c06f709b1d5eaeb35bb127..2fe4d0190a8a0eda42467b69f000733ec508daaf 100644 --- a/indra/newview/skins/default/xui/en/floater_region_restarting.xml +++ b/indra/newview/skins/default/xui/en/floater_region_restarting.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater - height="245" - width="500" + height="150" + width="290" layout="topleft" name="region_restarting" help_topic="floater_region_restarting" @@ -17,16 +17,27 @@ If you stay in this region you will be logged out. Seconds until restart [SECONDS] </string> - <panel + <panel name="layout_panel_1" - height="245" - width="500" + height="150" + width="290" follows="right|top" top="0" left="0" background_visible="true" bg_opaque_color="Orange" bg_alpha_color="Orange"> + + <icon color="1.0 1.0 1.0 1.0" + tab_stop="false" + mouse_opaque="false" + name="icon" + width="32" + height="32" + image_name="notify_caution_icon.tga" + follows="left|top"> + </icon> + <text type="string" length="1" @@ -34,12 +45,12 @@ If you stay in this region you will be logged out. layout="topleft" name="region_name" text_color="Black" - font="SansSerifLarge" + font="SansSerifBold" word_wrap="true" height="100" - top="30" - left="10" - width="480"> + top="5" + left="40" + width="230"> The region you are in now (-The longest region name-) is about to restart. If you stay in this region you will be logged out. @@ -51,11 +62,12 @@ If you stay in this region you will be logged out. layout="topleft" name="restart_seconds" text_color="Black" - font="SansSerifHuge" - height="100" + font="SansSerifLargeBold" + height="40" + top="110" left="0" halign="center" - width="500"> + width="290"> Seconds until restart 32767 </text>