2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix crash in closing export panel.

This commit is contained in:
John Preston
2019-06-24 10:59:21 +02:00
parent e5cfa3fdc9
commit 9c85d58235
3 changed files with 12 additions and 7 deletions

View File

@@ -285,7 +285,9 @@ void SeparatePanel::ensureLayerCreated() {
_layer->resize(size);
}, _layer->lifetime());
_layer->hideFinishEvents(
) | rpl::start_with_next([=]{
) | rpl::filter([=] {
return _layer != nullptr; // Last hide finish is sent from destructor.
}) | rpl::start_with_next([=] {
if (Ui::InFocusChain(_layer)) {
setFocus();
}