diff options
author | Timothy Pearson <[email protected]> | 2013-05-14 19:35:54 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-05-14 19:35:54 -0500 |
commit | 9a4765a62e321af08ec96a03cdbef64039788e86 (patch) | |
tree | fd261fdcf042d490030a2a1d337cf1b7cc8b514f /src/kernel/qeventloop_x11_glib.cpp | |
parent | c740211ffba3330d951f4c3ddefea8edf23a01cd (diff) | |
download | tqt3-9a4765a62e321af08ec96a03cdbef64039788e86.tar.gz tqt3-9a4765a62e321af08ec96a03cdbef64039788e86.zip |
Automated update from Qt3
Diffstat (limited to 'src/kernel/qeventloop_x11_glib.cpp')
-rw-r--r-- | src/kernel/qeventloop_x11_glib.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/qeventloop_x11_glib.cpp b/src/kernel/qeventloop_x11_glib.cpp index f19f02f1e..df607ce78 100644 --- a/src/kernel/qeventloop_x11_glib.cpp +++ b/src/kernel/qeventloop_x11_glib.cpp @@ -629,6 +629,10 @@ bool TQEventLoop::gsourceDispatch(GSource *gs) { bool TQEventLoop::hasPendingEvents() const { +#ifdef QT_THREAD_SUPPORT + TQMutexLocker locker( TQApplication::tqt_mutex ); +#endif // QT_THREAD_SUPPORT + extern uint qGlobalPostedEventsCount(); // from qapplication.cpp return ( qGlobalPostedEventsCount() || ( (tqt_is_gui_used && TQApplication::isGuiThread()) ? XPending( TQPaintDevice::x11AppDisplay() ) : 0)); } |