mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-13 01:26:19 -06:00
Corner Point Case: create view only when in GUI mode.
This commit is contained in:
1 parent
8ac3b11402
commit
a5ce90083d
1 file changed
+9
-9
@@ -297,19 +297,19 @@ std::expected<caf::PdmObjectHandle*, QString> RimProject_createGridFromKeyValues
|
||||
|
||||
RimMainPlotCollection::current()->ensureDefaultFlowPlotsAreCreated();
|
||||
|
||||
if ( RimEclipseView* riv = grid->createAndAddReservoirView() )
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
riv->loadDataAndUpdate();
|
||||
|
||||
if ( !riv->cellResult()->hasResult() )
|
||||
if ( RimEclipseView* riv = grid->createAndAddReservoirView() )
|
||||
{
|
||||
riv->cellResult()->setResultVariable( RiaResultNames::undefinedResultName() );
|
||||
}
|
||||
riv->loadDataAndUpdate();
|
||||
|
||||
analysisModels->updateConnectedEditors();
|
||||
if ( !riv->cellResult()->hasResult() )
|
||||
{
|
||||
riv->cellResult()->setResultVariable( RiaResultNames::undefinedResultName() );
|
||||
}
|
||||
|
||||
analysisModels->updateConnectedEditors();
|
||||
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
if ( RiuMainWindow::instance() ) RiuMainWindow::instance()->selectAsCurrentItem( riv->cellResult() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user