From 1de9352f3a99c88cda7dfcd1d4dc863256d1a14b Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 20 Mar 2020 17:14:49 +0400 Subject: [PATCH] Don't close filter by escape. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index d7b1e899c..0ddb7fc4b 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -1592,8 +1592,6 @@ void Widget::keyPressEvent(QKeyEvent *e) { if (e->key() == Qt::Key_Escape) { if (_openedFolder) { controller()->closeFolder(); - } else if (_inner->filterId()) { - controller()->setActiveChatsFilter(0); } else { e->ignore(); }