From f55b6d25196f18a7ba93f96ccd6d36d804477bdf Mon Sep 17 00:00:00 2001 From: Stein Dale Date: Thu, 18 Jun 2015 13:22:13 +0200 Subject: [PATCH] Removed ui update code that is not needed (#311) --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 3 --- ApplicationCode/ProjectDataModel/RimGeoMechResultSlot.cpp | 2 -- ApplicationCode/ProjectDataModel/RimResultSlot.cpp | 2 -- 3 files changed, 7 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index ebe9c1dead..a77e802d62 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -693,9 +693,6 @@ void RimEclipseView::loadDataAndUpdate() { setDefaultView(); } - - bool resultPresent = cellResult() ? cellResult()->hasStaticResult() || cellResult()->hasDynamicResult() : false; - uiEnableDisableLighting(resultPresent); } diff --git a/ApplicationCode/ProjectDataModel/RimGeoMechResultSlot.cpp b/ApplicationCode/ProjectDataModel/RimGeoMechResultSlot.cpp index dd11476b16..c7cc1c4134 100644 --- a/ApplicationCode/ProjectDataModel/RimGeoMechResultSlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimGeoMechResultSlot.cpp @@ -187,8 +187,6 @@ void RimGeoMechResultSlot::fieldChangedByUi(const caf::PdmFieldHandle* changedFi if (m_reservoirView->geoMechCase()->geoMechData()->femPartResults()->assertResultsLoaded(this->resultAddress())) { m_reservoirView->hasUserRequestedAnimation = true; - m_reservoirView->uiEnableDisableLighting(true); - RiuMainWindow::instance()->refreshDrawStyleActions(); } m_reservoirView->createDisplayModelAndRedraw(); diff --git a/ApplicationCode/ProjectDataModel/RimResultSlot.cpp b/ApplicationCode/ProjectDataModel/RimResultSlot.cpp index d6299c4376..a57df435ca 100644 --- a/ApplicationCode/ProjectDataModel/RimResultSlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimResultSlot.cpp @@ -71,8 +71,6 @@ void RimResultSlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, co if (oldValue != newValue) { changeLegendConfig(this->resultVariable()); - if (m_reservoirView) m_reservoirView->uiEnableDisableLighting(true); - RiuMainWindow::instance()->refreshDrawStyleActions(); } if (newValue != RimDefines::undefinedResultName())