mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#407) Disable "Add property filter" for per-cell face color results
This commit is contained in:
parent
520f1fc60d
commit
4618f50e9e
@ -156,7 +156,15 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
|||||||
RimEclipseCellColors* cellColors = eclipseView->cellResult().p();
|
RimEclipseCellColors* cellColors = eclipseView->cellResult().p();
|
||||||
if (cellColors)
|
if (cellColors)
|
||||||
{
|
{
|
||||||
menu.addAction(QString("Add property filter"), this, SLOT(slotAddEclipsePropertyFilter()));
|
QAction* propertyAction = new QAction(QString("Add property filter"), this);
|
||||||
|
connect(propertyAction, SIGNAL(triggered()), SLOT(slotAddEclipsePropertyFilter()));
|
||||||
|
|
||||||
|
bool isPerCellFaceResult = RimDefines::isPerCellFaceResult(cellColors->resultVariable());
|
||||||
|
if (isPerCellFaceResult)
|
||||||
|
{
|
||||||
|
propertyAction->setEnabled(false);
|
||||||
|
}
|
||||||
|
menu.addAction(propertyAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide faults command
|
// Hide faults command
|
||||||
|
Loading…
Reference in New Issue
Block a user