mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #787, MS review items + discussion on slack
https://dev.vatsim-germany.org/issues/787#note-4
This commit is contained in:
@@ -515,12 +515,9 @@ namespace BlackCore
|
||||
|
||||
void CApplication::processEventsFor(int milliseconds)
|
||||
{
|
||||
const QTime end = QTime::currentTime().addMSecs(milliseconds);
|
||||
while (QTime::currentTime() <= end)
|
||||
{
|
||||
QCoreApplication::processEvents();
|
||||
QThread::msleep(100);
|
||||
}
|
||||
QEventLoop eventLoop;
|
||||
QTimer::singleShot(milliseconds, &eventLoop, &QEventLoop::quit);
|
||||
eventLoop.exec();
|
||||
}
|
||||
|
||||
bool CApplication::useContexts(const CCoreFacadeConfig &coreConfig)
|
||||
|
||||
Reference in New Issue
Block a user