(#686) Enable "Hide grid" for geomech views

This commit is contained in:
Magne Sjaastad 2015-12-03 08:38:03 +01:00
parent 5d81209b72
commit 9ec7326735

View File

@ -1897,19 +1897,21 @@ void RiuMainWindow::refreshDrawStyleActions()
m_drawStyleFaultLinesSolidAction->setEnabled(enable);
m_disableLightingAction->setEnabled(enable);
RimGeoMechView* geoMechView = dynamic_cast<RimGeoMechView*>(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<RimEclipseView*>(view);
enable = enable && eclView;
m_drawStyleToggleFaultsAction->setEnabled(enable);
m_toggleFaultsLabelAction->setEnabled(enable);
m_addWellCellsToRangeFilterAction->setEnabled(enable);
if (enable)