Call TQApplication::coreThread() in a static manner

This is a follow-up to d346b0f7a

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/236/head
Alexander Golubev 5 months ago
parent d346b0f7af
commit ed67ad10dd

@ -3076,7 +3076,7 @@ int TQApplication::exec()
void TQApplication::exit( int retcode )
{
#ifdef TQT_THREAD_SUPPORT
TQThread* thread = tqApp->coreThread();
TQThread* thread = TQApplication::coreThread();
if (thread) {
if (thread->d) {
if (thread->d->eventLoop) {
@ -3139,7 +3139,7 @@ int TQApplication::loopLevel() const
void TQApplication::wakeUpCoreThread()
{
#ifdef TQT_THREAD_SUPPORT
TQThread* thread = tqApp->coreThread();
TQThread* thread = TQApplication::coreThread();
if (thread) {
if (thread->d) {
if (thread->d->eventLoop) {

Loading…
Cancel
Save