From d4f37f786bb738b8973a984e577c95bb5c9a8a8e Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Fri, 30 Mar 2018 13:45:27 +0200 Subject: [PATCH] Once again reset completion model first time tab is pressed. This ensures we never tab the wrong username, but it's really expensive. --- src/widgets/helper/resizingtextedit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/helper/resizingtextedit.cpp b/src/widgets/helper/resizingtextedit.cpp index 130db7853..46038718e 100644 --- a/src/widgets/helper/resizingtextedit.cpp +++ b/src/widgets/helper/resizingtextedit.cpp @@ -101,6 +101,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event) if (!this->completionInProgress) { // First type pressing tab after modifying a message, we refresh our completion model + this->completer->setModel(completionModel); completionModel->refresh(); this->completionInProgress = true; this->completer->setCompletionPrefix(currentCompletionPrefix);