mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
parent
ec349f5978
commit
d4f37f786b
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue