|
|
@ -3732,7 +3732,7 @@ void TQApplication::removePostedEvent( TQEvent * event )
|
|
|
|
void tqThreadTerminationHandlerRecursive( TQObject* object, TQThread* originThread, TQThread* destinationThread ) {
|
|
|
|
void tqThreadTerminationHandlerRecursive( TQObject* object, TQThread* originThread, TQThread* destinationThread ) {
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
TQThread* objectThread = object->contextThreadObject();
|
|
|
|
TQThread* objectThread = object->contextThreadObject();
|
|
|
|
if (objectThread != destinationThread) {
|
|
|
|
if (objectThread && (objectThread != destinationThread)) {
|
|
|
|
TQThread::CleanupType cleanupType = objectThread->cleanupType();
|
|
|
|
TQThread::CleanupType cleanupType = objectThread->cleanupType();
|
|
|
|
if (cleanupType == TQThread::CleanupMergeObjects) {
|
|
|
|
if (cleanupType == TQThread::CleanupMergeObjects) {
|
|
|
|
object->moveToThread(destinationThread);
|
|
|
|
object->moveToThread(destinationThread);
|
|
|
|