mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix some minor issues (#8043)
* #8016 Surface Ensemble : Update 2d intersection views * Ensemble WLP : Make code more robust to missing data * Janitor: Do not add files to recently used list when importing ensemble * #8016 Ensemble WLP : Delete all temporary plots in one go * #8016 WLP: Create a default date string that can be exported to LAS * #8016 Janitor: Use *.dev as default well path extension
This commit is contained in:
@@ -146,7 +146,8 @@ void RicCreateEnsembleWellLogFeature::executeCommand( const RicCreateEnsembleWel
|
||||
|
||||
if ( !wellPath ) return;
|
||||
|
||||
QStringList allLasFileNames;
|
||||
std::vector<RimWellLogPlot*> tmpPlotsToDelete;
|
||||
QStringList allLasFileNames;
|
||||
for ( const auto& fileName : fileNames )
|
||||
{
|
||||
auto task = progress.task( QString( "Extracting well log for %1" ).arg( fileName ) );
|
||||
@@ -217,12 +218,21 @@ void RicCreateEnsembleWellLogFeature::executeCommand( const RicCreateEnsembleWel
|
||||
allLasFileNames << lasFile;
|
||||
}
|
||||
|
||||
// Remove the temporary plots after export
|
||||
plotCollection->removePlot( wellLogPlot );
|
||||
tmpPlotsToDelete.push_back( wellLogPlot );
|
||||
|
||||
RicCloseCaseFeature::deleteEclipseCase( eclipseCase );
|
||||
}
|
||||
|
||||
for ( auto wlp : tmpPlotsToDelete )
|
||||
{
|
||||
// Hide window to avoid flickering
|
||||
wlp->setShowWindow( false );
|
||||
wlp->updateMdiWindowVisibility();
|
||||
|
||||
plotCollection->removePlot( wlp );
|
||||
delete wlp;
|
||||
}
|
||||
|
||||
if ( ui.autoCreateEnsembleWellLogs() )
|
||||
{
|
||||
std::vector<RimEnsembleWellLogs*> ensembleWellLogs =
|
||||
|
||||
Reference in New Issue
Block a user