[*] We're always main (again) (fuck off)
Change-Id: I3761ef75736057ae5134e4d44275f9094227e3ed
This commit is contained in:
parent
c37f6d7e03
commit
e0d35bff27
@ -459,8 +459,7 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv)
|
||||
# endif // Q_OS_UNIX
|
||||
|
||||
QThread *cur = QThread::currentThread(); // note: this may end up setting theMainThread!
|
||||
if (cur != theMainThread.loadAcquire())
|
||||
qWarning("WARNING: QApplication was not created in the main() thread.");
|
||||
theMainThread.storeRelease(cur);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user