From: Manuel Nickschas Date: Sun, 22 Jan 2012 20:04:44 +0000 (+0100) Subject: Revert "Reset the input prior to processing it in order to prevent issues with per... X-Git-Tag: 0.8-beta1~51 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d45d1044c030312878cb648fd1325ce70b079c44 Revert "Reset the input prior to processing it in order to prevent issues with per-chat history. fixes 984" This reverts commit b56a8712f3063e93b68bfa6bd8f2ec67e955df50. That solution had the side effect that the textEdit would already been cleared when the textEntered() signal was sent out. This broke the assumption that consumers of that signal could access the edit's content. We'll find a better solution for the history problems. --- diff --git a/src/uisupport/multilineedit.cpp b/src/uisupport/multilineedit.cpp index 874dce8f..82f25de3 100644 --- a/src/uisupport/multilineedit.cpp +++ b/src/uisupport/multilineedit.cpp @@ -637,11 +637,9 @@ void MultiLineEdit::on_returnPressed(const QString & text) { if(line.isEmpty()) continue; addToHistory(line); - } - reset(); - foreach(const QString &line, text.split('\n', QString::SkipEmptyParts)) { emit textEntered(line); } + reset(); _tempHistory.clear(); } else { emit noTextEntered();