History

Fix possible hang when switching out of Oculus mode

Brad Davis committed 11 years ago

Commit 382de2b1 parent ae8c3a11 file · +4 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+4−2
@@ -4761,9 +4761,11 @@ void Application::updateDisplayMode() { · 4760 unmodified lines
47614761 qDebug() << "Deferring plugin switch until out of painting";
47624762 // Have the old plugin stop requesting renders
47634763 oldDisplayPlugin->stop();
4764− QCoreApplication::postEvent(this, new LambdaEvent([this] {
4764+ QTimer* timer = new QTimer();
4765+ timer->singleShot(500, [this, timer] {
4766+ timer->deleteLater();
47654767 updateDisplayMode();
4766− }));
4768+ });
47674769 return;
47684770 }
47694771