From d643d19c963f1ede982fc107b8038f37dadf27f4 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 10 Mar 2024 16:39:03 +0300 Subject: Fix compilation with -no-thread Signed-off-by: Alexander Golubev (cherry picked from commit 4100c9e29f3ccb324a68ff1759ebbf1d35849a40) --- src/kernel/qeventloop.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/qeventloop.cpp') diff --git a/src/kernel/qeventloop.cpp b/src/kernel/qeventloop.cpp index 2aa96de69..402894f2a 100644 --- a/src/kernel/qeventloop.cpp +++ b/src/kernel/qeventloop.cpp @@ -107,9 +107,11 @@ TQEventLoop::TQEventLoop( TQObject *parent, const char *name ) #if defined(QT_CHECK_STATE) if ( TQApplication::currentEventLoop() ) tqFatal( "TQEventLoop: there must be only one event loop object per thread. \nIf this is supposed to be the main GUI event loop, construct it before TQApplication." ); +#ifdef TQT_THREAD_SUPPORT if (!TQThread::currentThreadObject()) { tqFatal( "TQEventLoop: this object can only be used in threads constructed via TQThread." ); } +#endif // TQT_THREAD_SUPPORT #endif // QT_CHECK_STATE d = new TQEventLoopPrivate; -- cgit v1.2.3