mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not create default plot if plot window is hidden
When working in the 3D window, creating a MDI window in a hidden plot window causes flickering.
This commit is contained in:
parent
9677a18bfa
commit
3dcb81ebfb
@ -190,7 +190,7 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList&
|
||||
delete duplicateCase;
|
||||
}
|
||||
|
||||
if ( !candidateCases.empty() )
|
||||
if ( !candidateCases.empty() && RiuPlotMainWindow::instance()->isVisible() )
|
||||
{
|
||||
RicSummaryPlotBuilder::createAndAppendDefaultSummaryMultiPlot( { candidateCases.front() }, {} );
|
||||
RiuPlotMainWindowTools::setExpanded( candidateCases.front() );
|
||||
@ -206,7 +206,7 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile( const QStringList&
|
||||
|
||||
project->activeOilField()->completionTemplateCollection()->setDefaultUnitSystemBasedOnLoadedCases();
|
||||
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
if ( RiuPlotMainWindow::instance()->isVisible() ) RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
||||
if ( RiaGuiApplication::isRunning() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user