mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3950 Add the minimal --summaryplot commandline option.
Using shell globbing for filenames, and only one additional option implemented. Avoid creating default plot when using --summaryplot
This commit is contained in:
committed by
Gaute Lindkvist
parent
6880483453
commit
e04daa7596
@@ -122,6 +122,7 @@ void RicImportSummaryCasesFeature::setupActionLook(QAction* actionToSetup)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicImportSummaryCasesFeature::createAndAddSummaryCasesFromFiles(const QStringList& fileNames,
|
||||
bool doCreateDefaultPlot,
|
||||
std::vector<RimSummaryCase*>* newCases)
|
||||
{
|
||||
RiaGuiApplication* app = RiaGuiApplication::instance();
|
||||
@@ -131,7 +132,7 @@ bool RicImportSummaryCasesFeature::createAndAddSummaryCasesFromFiles(const QStri
|
||||
if (createSummaryCasesFromFiles(fileNames, cases))
|
||||
{
|
||||
addSummaryCases(*cases);
|
||||
if (!cases->empty())
|
||||
if (!cases->empty() && doCreateDefaultPlot)
|
||||
{
|
||||
RicSummaryPlotFeatureImpl::createDefaultSummaryPlot(cases->back());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user