Oops... fix introduced bug
authorunc0rr
Wed, 15 Oct 2008 15:59:19 +0000
changeset 1357 5b9012dd4a05
parent 1356 77ab8735401d
child 1358 99ba722e5a09
Oops... fix introduced bug
QTfrontend/chatwidget.cpp
QTfrontend/hwform.cpp
--- a/QTfrontend/chatwidget.cpp	Wed Oct 15 15:02:39 2008 +0000
+++ b/QTfrontend/chatwidget.cpp	Wed Oct 15 15:59:19 2008 +0000
@@ -57,8 +57,8 @@
 
 void HWChatWidget::onChatStringFromNet(const QString& str)
 {
-  if (str.size() < 2) return;
   QListWidget* w = chatText;
+  w->addItem(str);
   w->scrollToBottom();
   w->setSelectionMode(QAbstractItemView::NoSelection);
 }
--- a/QTfrontend/hwform.cpp	Wed Oct 15 15:02:39 2008 +0000
+++ b/QTfrontend/hwform.cpp	Wed Oct 15 15:59:19 2008 +0000
@@ -428,8 +428,8 @@
 	connect(ui.pageRoomsList, SIGNAL(askForRoomList()),
 		hwnet, SLOT(askRoomsList()));
 
-	connect(hwnet, SIGNAL(chatStringFromNet(const QStringList&)),
-		ui.pageNetGame->pChatWidget, SLOT(onChatStringFromNet(const QStringList&)));
+	connect(hwnet, SIGNAL(chatStringFromNet(const QString&)),
+		ui.pageNetGame->pChatWidget, SLOT(onChatStringFromNet(const QString&)));
 	connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)),
 		hwnet, SLOT(chatLineToNet(const QString&)));
 	connect(hwnet, SIGNAL(nickAdded(const QString&)),