Skip to content

Commit

Permalink
Block update of view until summary data is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Nov 4, 2024
1 parent 0701309 commit 7f4eaa5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "RiaGuiApplication.h"
#include "RiaLogging.h"
#include "RiaPreferencesGrid.h"
#include "RiaViewRedrawScheduler.h"

#include "RifEclipseSummaryTools.h"
#include "RifReaderSettings.h"
Expand Down Expand Up @@ -95,6 +96,10 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList& fil

FileCaseIdMap openedFiles;

// Block updates until summary data is imported
// Process events is called during import of summary data, and this will trigger redraw of the 3D window
RiaViewRedrawScheduler::instance()->blockUpdate( true );

// Import eclipse case files
for ( const QString& gridCaseFile : selector.gridCaseFiles() )
{
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 7f4eaa5

Please sign in to comment.