QTfrontend/newnetclient.cpp
changeset 2149 2eda77999bec
parent 2138 b246ad6484f5
child 2155 d897222d3339
--- a/QTfrontend/newnetclient.cpp	Fri Jun 05 14:19:21 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Sat Jun 06 12:42:35 2009 +0000
@@ -161,7 +161,8 @@
 void HWNewNet::ClientRead()
 {
 	while (NetSocket.canReadLine()) {
-		QString s = QString::fromUtf8(NetSocket.readLine().trimmed());
+		QString s = QString::fromUtf8(NetSocket.readLine());
+		if (s.endsWith('\n')) s.chop(1);
 
 		if (s.size() == 0) {
 			ParseCmd(cmdbuf);