reset filter string when emoji completer is opened

This commit is contained in:
Jussi Kuokkanen 2020-09-13 13:31:02 +03:00
parent b37534aa53
commit bfcfa79d53

View file

@ -246,7 +246,8 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event)
}
case Qt::Key_Colon: {
QTextEdit::keyPressEvent(event);
trigger_pos_ = textCursor().position() - 1;
trigger_pos_ = textCursor().position() - 1;
emoji_completion_model_->setFilterRegExp("");
emoji_popup_open_ = true;
break;
}