Qt: Pump events on main thread when waiting for init
This commit is contained in:
1 parent
76cb52407b
commit
5274fa32ac
1 file changed
+3
-1
@@ -991,6 +991,8 @@ void QtHostInterface::Thread::setInitResult(bool result)
|
||||
|
||||
bool QtHostInterface::Thread::waitForInit()
|
||||
{
|
||||
m_init_event.Wait();
|
||||
while (!m_init_event.TryWait(100))
|
||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
|
||||
return m_init_result.load();
|
||||
}
|
||||
Reference in new issue
Block a user