Fix possible crash.

This commit is contained in:
John Preston 2017-12-08 15:53:28 +04:00
parent f8963d7e4b
commit 80bb6b65a7
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ void MainWindow::ui_showBox(
if (_layerBg) {
_layerBg->hideTopLayer(animated);
if ((animated == anim::type::instant)
&& _layerBg
&& !_layerBg->layerShown()) {
destroyLayerDelayed();
}