mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix possible crash.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user