mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-13 18:47:19 +00:00
Fix possible crash.
This commit is contained in:
parent
f8963d7e4b
commit
80bb6b65a7
@ -463,6 +463,7 @@ void MainWindow::ui_showBox(
|
||||
if (_layerBg) {
|
||||
_layerBg->hideTopLayer(animated);
|
||||
if ((animated == anim::type::instant)
|
||||
&& _layerBg
|
||||
&& !_layerBg->layerShown()) {
|
||||
destroyLayerDelayed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user