Fix small chats list column bug with boxes.

This commit is contained in:
John Preston 2017-09-19 22:15:13 +03:00
parent c0e780a28f
commit 26532ab9b4

View File

@ -712,10 +712,11 @@ void MainWindow::noLayerStack(LayerStackWidget *was) {
void MainWindow::layerFinishedHide(LayerStackWidget *was) {
if (was == _layerBg) {
auto resetFocus = (was == App::wnd()->focusWidget());
auto resetFocus = Ui::InFocusChain(was);
if (resetFocus) setFocus();
destroyLayerDelayed();
InvokeQueued(this, [this, resetFocus] {
if (resetFocus) setInnerFocus();
if (resetFocus) setInnerFocus();
InvokeQueued(this, [this] {
checkHistoryActivation();
});
}