From a722bd554839e40d846efa6b0827f4eb9fd064d5 Mon Sep 17 00:00:00 2001 From: ski Date: Fri, 25 Mar 2016 12:34:28 +0300 Subject: [PATCH] 0027291: Command File->New crashes Import Export Qt sample on Linux Crash on Qt 4.8.6 was fixed. --- samples/qt/Common/src/View.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/qt/Common/src/View.cxx b/samples/qt/Common/src/View.cxx index 08c8db68e8..4ba33bf220 100755 --- a/samples/qt/Common/src/View.cxx +++ b/samples/qt/Common/src/View.cxx @@ -16,6 +16,10 @@ #include #include #include +#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000 + #include +#endif + #include #include @@ -50,6 +54,9 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent ) myRaytraceActions( 0 ), myBackMenu( NULL ) { +#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000 + XSynchronize(x11Info().display(),true); +#endif myContext = theContext; myXmin = 0;