diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index d89866861b..26e15b8fd9 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -307,7 +307,9 @@ Widget::Widget( QObject::connect( _filter->rawTextEdit().get(), &QTextEdit::cursorPositionChanged, - [=] { filterCursorMoved(); }); + this, + [=] { filterCursorMoved(); }, + Qt::QueuedConnection); // So getLastText() works already. if (!Core::UpdaterDisabled()) { Core::UpdateChecker checker;