#1623 Schedule invalidation of completion type results instead of immediate calculation

This commit is contained in:
Bjørnar Grip Fjær
2017-06-20 16:15:47 +02:00
parent 5a02cf1498
commit 78c948ea89
6 changed files with 37 additions and 18 deletions

View File

@@ -769,18 +769,8 @@ bool RimProject::showPlotWindow() const
//--------------------------------------------------------------------------------------------------
void RimProject::reloadCompletionTypeResultsInAllViews()
{
removeEclipseResultAndRedrawAllViews(RiaDefines::DYNAMIC_NATIVE, RiaDefines::completionTypeResultName());
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimProject::removeEclipseResultAndRedrawAllViews(RiaDefines::ResultCatType type, const QString & resultName)
{
for (RimEclipseCase* eclipseCase : activeOilField()->analysisModels->cases)
{
eclipseCase->removeEclipseResultAndScheduleRedrawAllViews(type, resultName);
}
createDisplayModelAndRedrawAllViews();
RiaApplication::instance()->scheduleRecalculateCompletionTypeAndRedraw();
}
//--------------------------------------------------------------------------------------------------