equal
deleted
inserted
replaced
481 { |
481 { |
482 saveList(ignoreList, nick.toLower() + "_ignore.txt"); |
482 saveList(ignoreList, nick.toLower() + "_ignore.txt"); |
483 saveList(friendsList, nick.toLower() + "_friends.txt"); |
483 saveList(friendsList, nick.toLower() + "_friends.txt"); |
484 } |
484 } |
485 |
485 |
|
486 |
486 void HWChatWidget::returnPressed() |
487 void HWChatWidget::returnPressed() |
487 { |
488 { |
488 QStringList lines = chatEditLine->text().split('\n'); |
489 QStringList lines = chatEditLine->text().split('\n'); |
489 chatEditLine->rememberCurrentText(); |
490 chatEditLine->rememberCurrentText(); |
490 foreach (const QString &line, lines) |
491 foreach (const QString &line, lines) |
491 { |
492 { |
|
493 // skip empty/whitespace lines |
|
494 if (line.trimmed().isEmpty()) |
|
495 continue; |
|
496 |
492 if (!parseCommand(line)) |
497 if (!parseCommand(line)) |
493 emit chatLine(line); |
498 emit chatLine(line); |
494 } |
499 } |
495 chatEditLine->clear(); |
500 chatEditLine->clear(); |
496 } |
501 } |