Work around QTBUG-56382 with manual event loop flushing

* See https://bugreports.qt.io/browse/QTBUG-56382 for more details -
  creating DXGI swapchains adds a windows hook, and enough windows hooks
  forces out Qt's internal hook which it relies upon for proper event
  processing.
This commit is contained in:
baldurk
2016-10-05 16:52:05 +02:00
parent d1cda249e2
commit 86623528bf
3 changed files with 17 additions and 4 deletions
+5
View File
@@ -62,6 +62,11 @@ CaptureContext::~CaptureContext()
delete m_MainWindow;
}
bool CaptureContext::isRunning()
{
return m_MainWindow && m_MainWindow->isVisible();
}
void CaptureContext::LoadLogfile(QString logFile, bool temporary)
{
LoadLogfile(-1, "", logFile, temporary);