From 9ec732673585537ef41aef12138663e738cefa8a Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 3 Dec 2015 08:38:03 +0100 Subject: [PATCH] (#686) Enable "Hide grid" for geomech views --- ApplicationCode/UserInterface/RiuMainWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuMainWindow.cpp b/ApplicationCode/UserInterface/RiuMainWindow.cpp index 8b5fff3588..644a27c833 100644 --- a/ApplicationCode/UserInterface/RiuMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuMainWindow.cpp @@ -1897,19 +1897,21 @@ void RiuMainWindow::refreshDrawStyleActions() m_drawStyleFaultLinesSolidAction->setEnabled(enable); m_disableLightingAction->setEnabled(enable); - RimGeoMechView* geoMechView = dynamic_cast(view); bool lightingDisabledInView = view ? view->isLightingDisabled() : false; m_disableLightingAction->blockSignals(true); m_disableLightingAction->setChecked(lightingDisabledInView); m_disableLightingAction->blockSignals(false); + if (enable) + { + m_drawStyleToggleFaultsAction->setEnabled(true); + } + RimEclipseView* eclView = dynamic_cast(view); enable = enable && eclView; - m_drawStyleToggleFaultsAction->setEnabled(enable); m_toggleFaultsLabelAction->setEnabled(enable); - m_addWellCellsToRangeFilterAction->setEnabled(enable); if (enable)