aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterabout.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:07 -0500
committerJacek Antonelli2008-08-15 23:45:07 -0500
commit8465910c79b8e746e04fd581cca2d60399e569b9 (patch)
treef43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/newview/llfloaterabout.cpp
parentSecond Life viewer sources 1.18.2.1 (diff)
downloadmeta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to 'linden/indra/newview/llfloaterabout.cpp')
-rw-r--r--linden/indra/newview/llfloaterabout.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp
index cc3bb08..b259455 100644
--- a/linden/indra/newview/llfloaterabout.cpp
+++ b/linden/indra/newview/llfloaterabout.cpp
@@ -41,7 +41,7 @@
41#include "llagent.h" 41#include "llagent.h"
42#include "llviewerstats.h" 42#include "llviewerstats.h"
43#include "llviewerregion.h" 43#include "llviewerregion.h"
44#include "llversion.h" 44#include "llversionviewer.h"
45#include "llviewerbuild.h" 45#include "llviewerbuild.h"
46#include "llvieweruictrlfactory.h" 46#include "llvieweruictrlfactory.h"
47#include "viewer.h" // for gViewerDigest 47#include "viewer.h" // for gViewerDigest
@@ -109,7 +109,9 @@ LLFloaterAbout::LLFloaterAbout()
109 support.append(" ("); 109 support.append(" (");
110 gAgent.getRegion()->getHost().getString(buffer, MAX_STRING); 110 gAgent.getRegion()->getHost().getString(buffer, MAX_STRING);
111 support.append(buffer); 111 support.append(buffer);
112 support.append(")\n\n"); 112 support.append(")\n");
113 support.append(gLastVersionChannel);
114 support.append("\n\n");
113 } 115 }
114 116
115 // CPU 117 // CPU
@@ -117,9 +119,8 @@ LLFloaterAbout::LLFloaterAbout()
117 support.append( gSysCPU.getCPUString() ); 119 support.append( gSysCPU.getCPUString() );
118 support.append("\n"); 120 support.append("\n");
119 121
120 U32 memory = gSysMemory.getPhysicalMemory() / 1024 / 1024; 122 U32 memory = gSysMemory.getPhysicalMemoryKB() / 1024;
121 // For some reason, the reported amount of memory is always wrong by one meg 123 // Moved hack adjustment to Windows memory size into llsys.cpp
122 memory++;
123 124
124 LLString mem_text = llformat("Memory: %u MB\n", memory ); 125 LLString mem_text = llformat("Memory: %u MB\n", memory );
125 support.append(mem_text); 126 support.append(mem_text);
@@ -165,8 +166,15 @@ LLFloaterAbout::LLFloaterAbout()
165 166
166 // Fix views 167 // Fix views
167 childDisable("credits_editor"); 168 childDisable("credits_editor");
168 childDisable("support_editor"); 169
169 childSetText("support_editor", support); 170 LLTextEditor * support_widget = (LLTextEditor *) getChildByName("support_editor", true);
171 if (support_widget)
172 {
173 support_widget->setEnabled( FALSE );
174 support_widget->setTakesFocus( TRUE );
175 support_widget->setText( support );
176 support_widget->setHandleEditKeysDirectly( TRUE );
177 }
170 178
171 center(); 179 center();
172 180