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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user