aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r--linden/indra/newview/llpanellogin.cpp40
1 files changed, 6 insertions, 34 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index e83a466..824c5b0 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -73,7 +73,7 @@
73#include "lluictrlfactory.h" 73#include "lluictrlfactory.h"
74#include "llhttpclient.h" 74#include "llhttpclient.h"
75#include "llweb.h" 75#include "llweb.h"
76#include "viewerversion.h" 76#include "viewerinfo.h"
77#include "llmediactrl.h" 77#include "llmediactrl.h"
78 78
79#include "llfloatermediabrowser.h" 79#include "llfloatermediabrowser.h"
@@ -264,25 +264,10 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
264 264
265 // childSetAction("quit_btn", onClickQuit, this); 265 // childSetAction("quit_btn", onClickQuit, this);
266 266
267 std::string imp_channel = gSavedSettings.getString("VersionChannelName"); 267 std::string imp_version = ViewerInfo::prettyInfo();
268 std::string imp_version = llformat("%d.%d.%d %s",
269 ViewerVersion::getImpMajorVersion(),
270 ViewerVersion::getImpMinorVersion(),
271 ViewerVersion::getImpPatchVersion(),
272 ViewerVersion::getImpTestVersion().c_str() );
273
274 std::string ll_channel = ViewerVersion::getLLViewerName();
275 std::string ll_version = llformat("%d.%d.%d (%d)",
276 ViewerVersion::getLLMajorVersion(),
277 ViewerVersion::getLLMinorVersion(),
278 ViewerVersion::getLLPatchVersion(),
279 ViewerVersion::getLLBuildVersion() );
280 268
281 LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); 269 LLTextBox* channel_text = getChild<LLTextBox>("channel_text");
282 channel_text->setTextArg("[CHANNEL]", imp_channel);
283 channel_text->setTextArg("[VERSION]", imp_version); 270 channel_text->setTextArg("[VERSION]", imp_version);
284 channel_text->setTextArg("[ALT_CHANNEL]", ll_channel);
285 channel_text->setTextArg("[ALT_VERSION]", ll_version);
286 channel_text->setClickedCallback(onClickVersion); 271 channel_text->setClickedCallback(onClickVersion);
287 channel_text->setCallbackUserData(this); 272 channel_text->setCallbackUserData(this);
288 273
@@ -916,12 +901,8 @@ void LLPanelLogin::loadLoginPage()
916 } 901 }
917 902
918 // Channel and Version 903 // Channel and Version
919 std::string version = llformat("%d.%d.%d %s", 904 char* curl_channel = curl_escape(ViewerInfo::nameWithVariant().c_str(), 0);
920 ViewerVersion::getImpMajorVersion(), ViewerVersion::getImpMinorVersion(), 905 char* curl_version = curl_escape(ViewerInfo::versionNumbers4().c_str(), 0);
921 ViewerVersion::getImpPatchVersion(), ViewerVersion::getImpTestVersion().c_str() );
922
923 char* curl_channel = curl_escape(gSavedSettings.getString("VersionChannelName").c_str(), 0);
924 char* curl_version = curl_escape(version.c_str(), 0);
925 906
926 oStr << "&channel=" << curl_channel; 907 oStr << "&channel=" << curl_channel;
927 oStr << "&version=" << curl_version; 908 oStr << "&version=" << curl_version;
@@ -1373,19 +1354,10 @@ bool LLPanelLogin::loadNewsBar()
1373 full_url << "?"; 1354 full_url << "?";
1374 } 1355 }
1375 1356
1376 std::string channel = gSavedSettings.getString("VersionChannelName"); 1357 std::string channel = ViewerInfo::nameWithVariant();
1358 std::string version = ViewerInfo::versionNumbers4();
1377 std::string skin = gSavedSettings.getString("SkinCurrent"); 1359 std::string skin = gSavedSettings.getString("SkinCurrent");
1378 1360
1379 std::string version =
1380 llformat("%d.%d.%d",
1381 ViewerVersion::getImpMajorVersion(),
1382 ViewerVersion::getImpMinorVersion(),
1383 ViewerVersion::getImpPatchVersion());
1384 if (!ViewerVersion::getImpTestVersion().empty())
1385 {
1386 version += " " + ViewerVersion::getImpTestVersion();
1387 }
1388
1389 char* curl_channel = curl_escape(channel.c_str(), 0); 1361 char* curl_channel = curl_escape(channel.c_str(), 0);
1390 char* curl_version = curl_escape(version.c_str(), 0); 1362 char* curl_version = curl_escape(version.c_str(), 0);
1391 char* curl_skin = curl_escape(skin.c_str(), 0); 1363 char* curl_skin = curl_escape(skin.c_str(), 0);