summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index ae280e3671b..723bd4b0da4 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -126,7 +126,9 @@ QAdoptedThread::QAdoptedThread(QThreadData *data)
// we are the main thread
QCoreApplicationPrivate::theMainThread.storeRelease(this);
QCoreApplicationPrivate::theMainThreadId.storeRelaxed(id);
- setObjectName(u"Qt mainThread"_s);
+
+ // bypass the bindings because nothing can be listening yet
+ d_func()->setObjectNameWithoutBindings(u"Qt mainThread"_s);
}
// thread should be running and not finished for the lifetime