--- 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);
}