From d45d1044c030312878cb648fd1325ce70b079c44 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 22 Jan 2012 21:04:44 +0100 Subject: [PATCH] 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. --- src/uisupport/multilineedit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.20.1