Fixed closing folder by Escape when opened dialog in one column mode.

Dialog should be opened by shortcut.
This commit is contained in:
23rd 2019-05-08 16:19:27 +03:00 committed by John Preston
parent 6de30b1137
commit 89a0cd3e81
1 changed files with 3 additions and 1 deletions

View File

@ -390,7 +390,9 @@ MainWidget::MainWidget(
? _history->history()->folder() ? _history->history()->folder()
: nullptr; : nullptr;
const auto openedFolder = controller->openedFolder().current(); const auto openedFolder = controller->openedFolder().current();
if (!openedFolder || historyFromFolder == openedFolder) { if (!openedFolder
|| historyFromFolder == openedFolder
|| Adaptive::OneColumn()) {
controller->showBackFromStack(); controller->showBackFromStack();
_dialogs->setInnerFocus(); _dialogs->setInnerFocus();
} else { } else {