Once again reset completion model first time tab is pressed. This ensures we never tab the wrong username, but it's really expensive.

This commit is contained in:
Rasmus Karlsson 2018-03-30 13:45:27 +02:00
parent ec349f5978
commit d4f37f786b

View file

@ -101,6 +101,7 @@ void ResizingTextEdit::keyPressEvent(QKeyEvent *event)
if (!this->completionInProgress) { if (!this->completionInProgress) {
// First type pressing tab after modifying a message, we refresh our completion model // First type pressing tab after modifying a message, we refresh our completion model
this->completer->setModel(completionModel);
completionModel->refresh(); completionModel->refresh();
this->completionInProgress = true; this->completionInProgress = true;
this->completer->setCompletionPrefix(currentCompletionPrefix); this->completer->setCompletionPrefix(currentCompletionPrefix);