mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 17:35:43 -04:00
Qt: Pump events on main thread when waiting for init
This commit is contained in:
parent
76cb52407b
commit
5274fa32ac
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user