QTfrontend/chatwidget.cpp
changeset 575 9a18a9b9d7d4
parent 486 7ea71cd3acd5
child 1066 1f1b3686a2b0
--- a/QTfrontend/chatwidget.cpp	Sat Aug 18 12:35:10 2007 +0000
+++ b/QTfrontend/chatwidget.cpp	Sat Aug 18 15:16:03 2007 +0000
@@ -57,6 +57,7 @@
 
 void HWChatWidget::onChatStringFromNet(const QStringList& str)
 {
+  if (str.size() < 2) return;
   QListWidget* w=chatText;
   w->addItem(str[0]+": "+str[1]);
   w->scrollToBottom();