2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use QEvent::registerEventType for custom event types

This commit is contained in:
Ilya Fedin
2023-08-16 14:54:31 +04:00
committed by John Preston
parent 19d5b17d2e
commit ec9f8943de
3 changed files with 3 additions and 3 deletions

View File

@@ -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) {