diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 906ee61d1..c05c17461 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -463,6 +463,7 @@ void MainWindow::ui_showBox( if (_layerBg) { _layerBg->hideTopLayer(animated); if ((animated == anim::type::instant) + && _layerBg && !_layerBg->layerShown()) { destroyLayerDelayed(); }