diff options
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface.cpp b/src/gui/kernel/qwindowsysteminterface.cpp index a3fe2a612d4..97201770d8b 100644 --- a/src/gui/kernel/qwindowsysteminterface.cpp +++ b/src/gui/kernel/qwindowsysteminterface.cpp @@ -95,7 +95,7 @@ template<> template<typename EventType, typename ...Args> bool QWindowSystemHelper<QWindowSystemInterface::SynchronousDelivery>::handleEvent(Args ...args) { - if (QThread::currentThread() == QGuiApplication::instance()->thread()) { + if (QThread::isMainThread()) { EventType event(args...); // Process the event immediately on the Gui thread and return the accepted state if (QWindowSystemInterfacePrivate::eventHandler) { |