summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterhud.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2009-05-08 07:43:08 +0000
committerSteven Bennetts <steve@lindenlab.com>2009-05-08 07:43:08 +0000
commita4000c3744e42fcbb638e742f3b63fa31a0dee15 (patch)
tree7f472c30e65bbfa04ee9bc06631a1af305cc31fb /indra/newview/llfloaterhud.cpp
parent6c4cadbb04d633ad7b762058bdeba6e1f650dafd (diff)
merge trunk@116587 skinning-7@119389 -> viewer-2.0.0-skinning-7
Diffstat (limited to 'indra/newview/llfloaterhud.cpp')
-rw-r--r--indra/newview/llfloaterhud.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/indra/newview/llfloaterhud.cpp b/indra/newview/llfloaterhud.cpp
index 9810bf1009..4379d25a66 100644
--- a/indra/newview/llfloaterhud.cpp
+++ b/indra/newview/llfloaterhud.cpp
@@ -52,7 +52,7 @@ LLFloaterHUD* LLFloaterHUD::sInstance = 0;
// Default constructor
LLFloaterHUD::LLFloaterHUD()
-: LLFloater(std::string("floater_hud")),
+: LLFloater(),
mWebBrowser(0)
{
// Create floater from its XML definition
@@ -69,11 +69,6 @@ LLFloaterHUD::LLFloaterHUD()
// Opaque background since we never get the focus
setBackgroundOpaque(TRUE);
- // Position floater based on saved location
- LLRect saved_position_rect = gSavedSettings.getRect("FloaterHUDRect2");
- reshape(saved_position_rect.getWidth(), saved_position_rect.getHeight(), FALSE);
- setRect(saved_position_rect);
-
mWebBrowser = getChild<LLWebBrowserCtrl>("floater_hud_browser" );
if (mWebBrowser)
{
@@ -91,9 +86,6 @@ LLFloaterHUD::LLFloaterHUD()
std::string url = base_url + language + "/";
mWebBrowser->navigateTo(url);
}
-
- // Remember the one instance
- sInstance = this;
}
// Get the instance
@@ -101,7 +93,7 @@ LLFloaterHUD* LLFloaterHUD::getInstance()
{
if (!sInstance)
{
- new LLFloaterHUD();
+ sInstance = new LLFloaterHUD();
}
return sInstance;
}
@@ -109,9 +101,6 @@ LLFloaterHUD* LLFloaterHUD::getInstance()
// Destructor
LLFloaterHUD::~LLFloaterHUD()
{
- // Save floater position
- gSavedSettings.setRect("FloaterHUDRect2", getRect() );
-
// Clear out the one instance if it's ours
if (sInstance == this)
{
@@ -131,7 +120,7 @@ void LLFloaterHUD::showHUD()
// Create the instance if necessary
LLFloaterHUD* hud = getInstance();
- hud->open();
+ hud->openFloater();
hud->setFrontmost(FALSE);
}