aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterreleasemsg.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterreleasemsg.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterreleasemsg.cpp')
-rw-r--r--linden/indra/newview/llfloaterreleasemsg.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterreleasemsg.cpp b/linden/indra/newview/llfloaterreleasemsg.cpp
index b3fb965..4f122f5 100644
--- a/linden/indra/newview/llfloaterreleasemsg.cpp
+++ b/linden/indra/newview/llfloaterreleasemsg.cpp
@@ -60,10 +60,8 @@ LLFloaterReleaseMsg* LLFloaterReleaseMsg::getInstance()
60LLFloaterReleaseMsg::LLFloaterReleaseMsg() 60LLFloaterReleaseMsg::LLFloaterReleaseMsg()
61: LLFloater( "Release Message Floater" ) 61: LLFloater( "Release Message Floater" )
62 62
63#if LL_LIBXUL_ENABLED
64 , 63 ,
65 mWebBrowser( 0 ) 64 mWebBrowser( 0 )
66#endif // LL_LIBXUL_ENABLED
67{ 65{
68 // create floater from its XML definition 66 // create floater from its XML definition
69 gUICtrlFactory->buildFloater( this, "floater_sim_release_message.xml" ); 67 gUICtrlFactory->buildFloater( this, "floater_sim_release_message.xml" );
@@ -75,7 +73,6 @@ LLFloaterReleaseMsg::LLFloaterReleaseMsg()
75 reshape( rect.getWidth(), rect.getHeight(), FALSE ); 73 reshape( rect.getWidth(), rect.getHeight(), FALSE );
76 setRect( rect ); 74 setRect( rect );
77 75
78#if LL_LIBXUL_ENABLED
79 mWebBrowser = LLViewerUICtrlFactory::getWebBrowserByName(this, "release_message_floater_browser" ); 76 mWebBrowser = LLViewerUICtrlFactory::getWebBrowserByName(this, "release_message_floater_browser" );
80 if ( mWebBrowser ) 77 if ( mWebBrowser )
81 { 78 {
@@ -89,7 +86,6 @@ LLFloaterReleaseMsg::LLFloaterReleaseMsg()
89 // special ones that do other stuff (like open F1 Help) 86 // special ones that do other stuff (like open F1 Help)
90 //mWebBrowser->setOpenSecondLifeLinksInMap( false ); 87 //mWebBrowser->setOpenSecondLifeLinksInMap( false );
91 } 88 }
92#endif // LL_LIBXUL_ENABLED
93 89
94 childSetAction("close_btn", onClickClose, this); 90 childSetAction("close_btn", onClickClose, this);
95 setDefaultBtn("close_btn"); 91 setDefaultBtn("close_btn");
@@ -99,14 +95,12 @@ LLFloaterReleaseMsg::LLFloaterReleaseMsg()
99// 95//
100LLFloaterReleaseMsg::~LLFloaterReleaseMsg() 96LLFloaterReleaseMsg::~LLFloaterReleaseMsg()
101{ 97{
102#if LL_LIBXUL_ENABLED
103 // stop observing browser events 98 // stop observing browser events
104 if ( mWebBrowser ) 99 if ( mWebBrowser )
105 mWebBrowser->remObserver( this ); 100 mWebBrowser->remObserver( this );
106#endif // LL_LIBXUL_ENABLED
107 101
108 // save position of floater 102 // save position of floater
109 gSavedSettings.setRect( "HtmlReleaseMessage", mRect ); 103 gSavedSettings.setRect( "HtmlReleaseMessage", getRect() );
110 104
111 sInstance = 0; 105 sInstance = 0;
112} 106}
@@ -131,16 +125,12 @@ void LLFloaterReleaseMsg::show()
131 sInstance->setTitle(sInstance->mTitleBase + " " + gLastVersionChannel); 125 sInstance->setTitle(sInstance->mTitleBase + " " + gLastVersionChannel);
132 sInstance->open(); 126 sInstance->open();
133 127
134#if LL_LIBXUL_ENABLED
135 // navigate to the URL 128 // navigate to the URL
136 if ( sInstance->mWebBrowser ) 129 if ( sInstance->mWebBrowser )
137 sInstance->mWebBrowser->navigateTo( url ); 130 sInstance->mWebBrowser->navigateTo( url );
138#endif // LL_LIBXUL_ENABLED
139 131
140 // make floater appear 132 // make floater appear
141 sInstance->setVisibleAndFrontmost(); 133 sInstance->setVisibleAndFrontmost();
142
143 sInstance->draw();
144} 134}
145 135
146 136