diff options
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r-- | src/kernel/qapplication.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp index 5b57bd249..6fade0228 100644 --- a/src/kernel/qapplication.cpp +++ b/src/kernel/qapplication.cpp @@ -2767,7 +2767,10 @@ bool TQApplication::internalNotify( TQObject *receiver, TQEvent * e) if (!handled) { #if defined(QT_THREAD_SUPPORT) - bool locked = TQApplication::tqt_mutex->locked(); + bool locked = false; + if (TQApplication::tqt_mutex) { + locked = TQApplication::tqt_mutex->locked(); + } if (locked) { TQApplication::tqt_mutex->unlock(); } @@ -2775,7 +2778,9 @@ bool TQApplication::internalNotify( TQObject *receiver, TQEvent * e) consumed = receiver->event( e ); #if defined(QT_THREAD_SUPPORT) if (locked) { - TQApplication::tqt_mutex->lock(); + if (TQApplication::tqt_mutex) { + TQApplication::tqt_mutex->lock(); + } } #endif } |