diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index 45d2bef81..beb06a6fb 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -28,7 +28,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "base/qthelp_regex.h" #include "ui/ui_utility.h" #include "ui/effects/animations.h" -#include "ui/platform/ui_platform_utility.h" #include #include @@ -593,18 +592,9 @@ void Sandbox::registerEnterFromEventLoop() { } bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) { - const auto type = e->type(); - if (type == base::InvokeQueuedEvent::Type()) { + if (e->type() == base::InvokeQueuedEvent::Type()) { static_cast(e)->invoke(); return true; - } else if (receiver == this) { - if (type == QEvent::ApplicationDeactivate) { - if (Ui::Platform::SkipApplicationDeactivateEvent()) { - return true; - } - } else if (type == QEvent::ApplicationActivate) { - Ui::Platform::GotApplicationActivateEvent(); - } } return QApplication::notify(receiver, e); } diff --git a/Telegram/lib_ui b/Telegram/lib_ui index a22254860..ea4c67408 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit a22254860f01256de3acdcd799c8fe6e1f8e0f0e +Subproject commit ea4c67408e1997cfce5d4bb0d9a0d55bb2d8b0f2