From 9f6fc3a4c834a8fb0f81f7bd2b985e8be8bd643d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 8 Jun 2020 12:20:51 +0400 Subject: [PATCH] Ignore observables notification after ~Application. --- Telegram/SourceFiles/core/sandbox.cpp | 6 +++--- Telegram/lib_ui | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index da33fa951..8c31e7937 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -84,9 +84,9 @@ Sandbox::Sandbox( : QApplication(argc, argv) , _mainThreadId(QThread::currentThreadId()) , _handleObservables([=] { - Expects(_application != nullptr); - - _application->call_handleObservables(); + if (_application) { + _application->call_handleObservables(); + } }) , _launcher(launcher) { } diff --git a/Telegram/lib_ui b/Telegram/lib_ui index dbcb6a35b..4ef97b57f 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit dbcb6a35b0cf47bac83d596a239a61b0084f9f4c +Subproject commit 4ef97b57f6925ac9f1e3221676f49dffb4fe8c19