mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7438 Project File: Simulation name is hard coded in plots
This commit is contained in:
@@ -723,3 +723,19 @@ void RimSummaryCaseMainCollection::updateFilePathsFromProjectPath( const QString
|
||||
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCaseMainCollection::updateAutoShortName()
|
||||
{
|
||||
// This update is required if the file path for the summary case is updated. To be able to produce plots
|
||||
// automatically, the short name must be generated on load
|
||||
//
|
||||
// https://github.com/OPM/ResInsight/issues/7438
|
||||
|
||||
for ( auto s : allSummaryCases() )
|
||||
{
|
||||
s->updateAutoShortName();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
|
||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
||||
|
||||
void updateAutoShortName();
|
||||
|
||||
private:
|
||||
static void loadSummaryCaseData( std::vector<RimSummaryCase*> summaryCases );
|
||||
static void loadFileSummaryCaseData( std::vector<RimFileSummaryCase*> fileSummaryCases );
|
||||
|
||||
Reference in New Issue
Block a user