QTfrontend/ui/widget/chatwidget.cpp
changeset 6237 a66029015c18
parent 6233 b81199041d8f
child 6238 b344159da248
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sat Oct 29 18:20:56 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sat Oct 29 20:47:40 2011 +0200
@@ -483,12 +483,17 @@
     saveList(friendsList, nick.toLower() + "_friends.txt");
 }
 
+
 void HWChatWidget::returnPressed()
 {
     QStringList lines = chatEditLine->text().split('\n');
     chatEditLine->rememberCurrentText();
     foreach (const QString &line, lines)
     {
+        // skip empty/whitespace lines
+        if (line.trimmed().isEmpty())
+            continue;
+
         if (!parseCommand(line))
             emit chatLine(line);
     }