diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index e157626c69..cef1adc0f0 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -678,7 +678,11 @@ void Application::slotNewDocument(const App::Document& Doc) signalNewDocument(*pDoc); pDoc->createView(View3DInventor::getClassTypeId()); + // FIXME: Do we really need this further? Calling processEvents() mixes up order of execution in an + // unpredicatable way. At least it seems that with Qt5 we don't need this any more. +#if QT_VERSION < 0x050000 qApp->processEvents(); // make sure to show the window stuff on the right place +#endif } void Application::slotDeleteDocument(const App::Document& Doc)