diff options
Diffstat (limited to 'linden/indra/newview/llfloaterreleasemsg.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterreleasemsg.cpp | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterreleasemsg.cpp b/linden/indra/newview/llfloaterreleasemsg.cpp index ff34724..b3fb965 100644 --- a/linden/indra/newview/llfloaterreleasemsg.cpp +++ b/linden/indra/newview/llfloaterreleasemsg.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -43,7 +43,7 @@ extern LLAgent gAgent; | |||
43 | 43 | ||
44 | 44 | ||
45 | LLFloaterReleaseMsg* LLFloaterReleaseMsg::sInstance = 0; | 45 | LLFloaterReleaseMsg* LLFloaterReleaseMsg::sInstance = 0; |
46 | 46 | bool LLFloaterReleaseMsg::sDisplayMessage = false; | |
47 | 47 | ||
48 | //////////////////////////////////////////////////////////////////////////////// | 48 | //////////////////////////////////////////////////////////////////////////////// |
49 | // | 49 | // |
@@ -154,3 +154,31 @@ void LLFloaterReleaseMsg::onClickClose( void* data ) | |||
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | ||
157 | //////////////////////////////////////////////////////////////////////////////// | ||
158 | // | ||
159 | |||
160 | // return true if it's a new version and we should display a notification | ||
161 | bool LLFloaterReleaseMsg::checkVersion(const LLString& version_channel) | ||
162 | { | ||
163 | bool res = false; | ||
164 | if (gLastVersionChannel != version_channel) | ||
165 | { | ||
166 | res = !gLastVersionChannel.empty(); // don't show message on initial login | ||
167 | gLastVersionChannel = version_channel; | ||
168 | } | ||
169 | return res; | ||
170 | } | ||
171 | |||
172 | void LLFloaterReleaseMsg::displayMessage(const LLString& version_channel) | ||
173 | { | ||
174 | //if we have the capability already, display the url, otherwise wait on it | ||
175 | if (gAgent.getRegion()->getCapability("ServerReleaseNotes").empty()) | ||
176 | { | ||
177 | sDisplayMessage = true; | ||
178 | } | ||
179 | else | ||
180 | { | ||
181 | sDisplayMessage = false; | ||
182 | show(); | ||
183 | } | ||
184 | } | ||