mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use QEvent::registerEventType for custom event types
This commit is contained in:
parent
19d5b17d2e
commit
ec9f8943de
3 changed files with 3 additions and 3 deletions
|
@ -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<base::InvokeQueuedEvent*>(e)->invoke();
|
||||
return true;
|
||||
} else if (receiver == this) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 185679354c7d0b7dd8d719daaaf806d177cb20bf
|
||||
Subproject commit 9c68fbe3cc4242a5f5f76dfda8ceab511cc08c70
|
|
@ -1 +1 @@
|
|||
Subproject commit 0ea27ae051774047cc00b92778f98c2f243712e8
|
||||
Subproject commit 632626b1921e99aaea6d02a9f7ebbb6354161365
|
Loading…
Add table
Reference in a new issue