diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-06 18:30:05 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-06 18:30:05 -0600 |
commit | f1f1d2243299cd1115002e5b5047e9c3a0a73134 (patch) | |
tree | 291f73c3407887b9d524ff9ea34dc93c2d31b879 /src/kernel/qeventloop_x11.cpp | |
parent | 3f5dc49edf41359f18e7c94c28a345a9600eb44f (diff) | |
download | tqt3-f1f1d2243299cd1115002e5b5047e9c3a0a73134.tar.gz tqt3-f1f1d2243299cd1115002e5b5047e9c3a0a73134.zip |
Automated update from Qt3
Diffstat (limited to 'src/kernel/qeventloop_x11.cpp')
-rw-r--r-- | src/kernel/qeventloop_x11.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp index a2d8590f6..a733c115d 100644 --- a/src/kernel/qeventloop_x11.cpp +++ b/src/kernel/qeventloop_x11.cpp @@ -284,7 +284,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) // unlock the GUI mutex and select. when we return from this function, there is // something for us to do #if defined(QT_THREAD_SUPPORT) - locker.mutex()->unlock(); + if ( locker.mutex() ) locker.mutex()->unlock(); + else return false; #endif int nsel; @@ -298,7 +299,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags ) // relock the GUI mutex before processing any pending events #if defined(QT_THREAD_SUPPORT) - locker.mutex()->lock(); + if ( locker.mutex() ) locker.mutex()->lock(); + else return false; #endif // we are awake, broadcast it |