mirror of https://github.com/procxx/kepka.git
Reset chosen filter on Escape.
This commit is contained in:
parent
8cdf8d5edc
commit
aa88ee6d88
|
@ -686,7 +686,11 @@ void Widget::escape() {
|
|||
controller()->closeFolder();
|
||||
} else if (!onCancelSearch()
|
||||
|| (!_searchInChat && !App::main()->selectingPeer())) {
|
||||
emit cancelled();
|
||||
if (controller()->activeChatEntryCurrent().key) {
|
||||
emit cancelled();
|
||||
} else if (controller()->activeChatsFilterCurrent()) {
|
||||
controller()->setActiveChatsFilter(FilterId(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue