mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Use QEvent::registerEventType for custom event types
This commit is contained in:
@@ -582,7 +582,7 @@ void Sandbox::registerEnterFromEventLoop() {
|
|||||||
|
|
||||||
bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) {
|
bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) {
|
||||||
const auto type = e->type();
|
const auto type = e->type();
|
||||||
if (type == base::InvokeQueuedEvent::kType) {
|
if (type == base::InvokeQueuedEvent::Type()) {
|
||||||
static_cast<base::InvokeQueuedEvent*>(e)->invoke();
|
static_cast<base::InvokeQueuedEvent*>(e)->invoke();
|
||||||
return true;
|
return true;
|
||||||
} else if (receiver == this) {
|
} else if (receiver == this) {
|
||||||
|
Submodule Telegram/lib_base updated: 185679354c...9c68fbe3cc
Submodule Telegram/lib_ui updated: 0ea27ae051...632626b192
Reference in New Issue
Block a user