diff --git a/ApplicationLibCode/Application/Tools/RiaImportEclipseCaseTools.cpp b/ApplicationLibCode/Application/Tools/RiaImportEclipseCaseTools.cpp index a3183d0f17..b641e99954 100644 --- a/ApplicationLibCode/Application/Tools/RiaImportEclipseCaseTools.cpp +++ b/ApplicationLibCode/Application/Tools/RiaImportEclipseCaseTools.cpp @@ -27,6 +27,7 @@ #include "RiaGuiApplication.h" #include "RiaLogging.h" #include "RiaPreferencesGrid.h" +#include "RiaViewRedrawScheduler.h" #include "RifEclipseSummaryTools.h" #include "RifReaderSettings.h" @@ -95,6 +96,10 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList& fil FileCaseIdMap openedFiles; + // Block updates until import of summary data is completed. QApplication::processEvents() is called during import of summary data, and + // this will trigger redraw of the 3D views in RiaViewRedrawScheduler + RiaViewRedrawScheduler::instance()->blockUpdate( true ); + // Import eclipse case files for ( const QString& gridCaseFile : selector.gridCaseFiles() ) { @@ -208,6 +213,8 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList& fil project->activeOilField()->completionTemplateCollection()->setDefaultUnitSystemBasedOnLoadedCases(); + RiaViewRedrawScheduler::instance()->blockUpdate( false ); + if ( RiaGuiApplication::isRunning() ) { if ( RiuPlotMainWindow::instance()->isVisible() ) RiuPlotMainWindowTools::refreshToolbars();