From 638f5526acc8481e1ff5d4a26f575478a9e245b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 29 Sep 2016 15:42:19 +0200 Subject: [PATCH] #899 Fixed Grid On/Off state in toolbar --- ApplicationCode/UserInterface/RiuMainWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuMainWindow.cpp b/ApplicationCode/UserInterface/RiuMainWindow.cpp index cd29cfb3d4..8b5fd1ae4b 100644 --- a/ApplicationCode/UserInterface/RiuMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuMainWindow.cpp @@ -1755,6 +1755,9 @@ void RiuMainWindow::refreshDrawStyleActions() if (enable) { m_drawStyleHideGridCellsAction->setEnabled(true); + m_drawStyleHideGridCellsAction->blockSignals(true); + m_drawStyleHideGridCellsAction->setChecked(!view->isGridVisualizationMode()); + m_drawStyleHideGridCellsAction->blockSignals(false); } RimEclipseView* eclView = dynamic_cast(view); @@ -1765,10 +1768,6 @@ void RiuMainWindow::refreshDrawStyleActions() if (enable) { - m_drawStyleHideGridCellsAction->blockSignals(true); - m_drawStyleHideGridCellsAction->setChecked(!eclView->isGridVisualizationMode()); - m_drawStyleHideGridCellsAction->blockSignals(false); - m_toggleFaultsLabelAction->blockSignals(true); m_toggleFaultsLabelAction->setChecked(eclView->faultCollection()->showFaultLabel()); m_toggleFaultsLabelAction->blockSignals(false);