diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 537951d9c..c2534ac7f 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -78,7 +78,9 @@
#include "llglheaders.h"
//
-#include "llappviewer.h"
+#include "llappviewer.h"
+#include "llspinctrl.h"
+#include
//
#define USE_VIEWER_AUTH 0
@@ -385,7 +387,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
getChild("id0_edit")->setEnabled(specify_id0);
fillMAC();
- fillID0();
+ fillID0();
+ fillVer();
childSetCommitCallback("mac_check", onCheckMAC, this);
childSetCommitCallback("id0_check", onCheckID0, this);
@@ -420,6 +423,14 @@ void LLPanelLogin::fillID0()
{
getChild("id0_edit")->setText(LLAppViewer::instance()->getSerialNumber());
}
+}
+
+void LLPanelLogin::fillVer()
+{
+ getChild("vermaj_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionMaj"));
+ getChild("vermin_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionMin"));
+ getChild("verpatch_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionPatch"));
+ getChild("verbuild_spin")->setValue((S32)gSavedSettings.getU32("SpecifiedVersionBuild"));
}
// static
diff --git a/indra/newview/llpanellogin.h b/indra/newview/llpanellogin.h
index 2e2d0564f..28aaa1e53 100644
--- a/indra/newview/llpanellogin.h
+++ b/indra/newview/llpanellogin.h
@@ -119,7 +119,8 @@ private:
static void clearPassword();
//
void fillMAC();
- void fillID0();
+ void fillID0();
+ void fillVer();
static void onCheckMAC(LLUICtrl* ctrl, void* userData);
static void onCheckID0(LLUICtrl* ctrl, void* userData);
//
diff --git a/indra/newview/skins/default/xui/en-us/panel_login.xml b/indra/newview/skins/default/xui/en-us/panel_login.xml
index 702ee3722..215071c65 100644
--- a/indra/newview/skins/default/xui/en-us/panel_login.xml
+++ b/indra/newview/skins/default/xui/en-us/panel_login.xml
@@ -99,42 +99,54 @@
font="SansSerifSmall" h_pad="0" halign="right" height="16"
left="-310" mouse_opaque="true" name="channel_text" v_pad="0" width="300"
hover="true" hover_color="50 115 185">
- [CHANNEL] [VERSION]
+ [CHANNEL] [VERSION]
-->
+ left="750" mouse_opaque="true" name="channel_text" v_pad="0" width="120" font_size="Small">
Channel:
+ name="channel_edit" select_all_on_focus_received="true" width="230" font_size="Small" />
+ left="750" mouse_opaque="true" name="mac_check" width="138" font_size="Small" />
+ name="mac_edit" select_all_on_focus_received="true" width="230" enabled="false" font_size="Small" />
+ left="750" mouse_opaque="true" name="id0_check" width="138" font_size="Small" />
+ name="id0_edit" select_all_on_focus_received="true" width="230" enabled="false" font_size="Small" />
+ left="1050" mouse_opaque="true" name="channel_text" v_pad="0" width="120" font_size="Small">
Version:
-
+
+
+
+