mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#1148 Use tristate for well cell visibility
This commit is contained in:
1 parent
b26bd11674
commit
fad0974b3f
5 files changed
+103
-45
No files matched your search
@@ -1384,6 +1384,7 @@ void RiuMainWindow::refreshDrawStyleActions()
|
||||
m_toggleFaultsLabelAction->blockSignals(false);
|
||||
|
||||
m_showWellCellsAction->blockSignals(true);
|
||||
eclView->wellCollection()->updateStateForVisibilityCheckboxes();
|
||||
m_showWellCellsAction->setChecked(eclView->wellCollection()->showWellCells());
|
||||
m_showWellCellsAction->blockSignals(false);
|
||||
}
|
||||
@@ -1577,7 +1578,7 @@ void RiuMainWindow::slotShowWellCellsAction(bool doAdd)
|
||||
RimEclipseView* riv = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (riv)
|
||||
{
|
||||
riv->wellCollection()->showWellCells.setValueWithFieldChanged(doAdd);
|
||||
riv->wellCollection()->setShowWellCellsState(doAdd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user