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