From 89a0cd3e8157b5d57240212c8df4261e7458479f Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 8 May 2019 16:19:27 +0300 Subject: [PATCH] Fixed closing folder by Escape when opened dialog in one column mode. Dialog should be opened by shortcut. --- Telegram/SourceFiles/mainwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 11e3e42fde..32388c6ea9 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -390,7 +390,9 @@ MainWidget::MainWidget( ? _history->history()->folder() : nullptr; const auto openedFolder = controller->openedFolder().current(); - if (!openedFolder || historyFromFolder == openedFolder) { + if (!openedFolder + || historyFromFolder == openedFolder + || Adaptive::OneColumn()) { controller->showBackFromStack(); _dialogs->setInnerFocus(); } else {