Improve reload and replace of cases

* Move code to from features to helper classes
* Ask user if replace case should also happen for the associated grid or summary file
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2024-01-25 10:41:57 +01:00
1 parent cd0a56c924
commit 6922ba22b0
22 files changed
+299 -308

No files matched your search

@@ -18,7 +18,7 @@
#include "RimRftCase.h"
#include "RicReloadSummaryCaseFeature.h"
#include "RiaSummaryTools.h"
#include "RimMainPlotCollection.h"
#include "RimSummaryCase.h"
@@ -84,7 +84,7 @@ void RimRftCase::fieldChangedByUi( const caf::PdmFieldHandle* changedField, cons
{
auto parentCase = firstAncestorOfType<RimSummaryCase>();
if ( parentCase ) RicReloadSummaryCaseFeature::reloadSummaryCase( parentCase );
if ( parentCase ) RiaSummaryTools::reloadSummaryCase( parentCase );
RimMainPlotCollection::current()->loadDataAndUpdateAllPlots();
}