Salome HOME
Abort document operation after error in process apply (Bug #340).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationOp.cxx
index aead39e1fb0abb6ba1e696d386d9fb4e073d1178..377e821bd26123f93e0aed521f49c743bc0f86ac 100644 (file)
@@ -715,7 +715,7 @@ void HYDROGUI_CalculationOp::createPreview()
       }
 
       //Process the draw events for viewer
-      QApplication::processEvents();
+      QApplication::processEvents( QEventLoop::ExcludeUserInputEvents );
       if ( OCCViewer_ViewWindow* vw = (OCCViewer_ViewWindow*)myPreviewViewManager->getActiveView() )
         vw->onTopView();
     }