summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-09-13 13:31:02 +0300
committerJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-09-13 13:31:02 +0300
commitbfcfa79d53929b1a7607f82fe8c10a82fa13e2dd (patch)
tree3e98976953eb1e7ebf48e49ea9335b1a288014b3 /src
parentMerge pull request #278 from trilene/voip (diff)
downloadnheko-bfcfa79d53929b1a7607f82fe8c10a82fa13e2dd.tar.xz
reset filter string when emoji completer is opened
Diffstat (limited to 'src')
-rw-r--r--src/TextInputWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index 6d57a5f1..4a25c4cf 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -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;
         }