From ec9f8943dee55094a42e7bcd94097a1749b0c674 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 16 Aug 2023 14:54:31 +0400 Subject: [PATCH] Use QEvent::registerEventType for custom event types --- Telegram/SourceFiles/core/sandbox.cpp | 2 +- Telegram/lib_base | 2 +- Telegram/lib_ui | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index d477101f4106a2..1a6c949cf740d7 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -582,7 +582,7 @@ void Sandbox::registerEnterFromEventLoop() { bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) { const auto type = e->type(); - if (type == base::InvokeQueuedEvent::kType) { + if (type == base::InvokeQueuedEvent::Type()) { static_cast(e)->invoke(); return true; } else if (receiver == this) { diff --git a/Telegram/lib_base b/Telegram/lib_base index 185679354c7d0b..9c68fbe3cc4242 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 185679354c7d0b7dd8d719daaaf806d177cb20bf +Subproject commit 9c68fbe3cc4242a5f5f76dfda8ceab511cc08c70 diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 0ea27ae0517740..632626b1921e99 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 0ea27ae051774047cc00b92778f98c2f243712e8 +Subproject commit 632626b1921e99aaea6d02a9f7ebbb6354161365