Skip to content

Commit

Permalink
Use QEvent::registerEventType for custom event types
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Aug 16, 2023
1 parent 19d5b17 commit ec9f894
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/core/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_base
2 changes: 1 addition & 1 deletion Telegram/lib_ui

0 comments on commit ec9f894

Please sign in to comment.