mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7481 Usability : Open grid model from summary case and summary curve
This commit is contained in:
@@ -254,6 +254,19 @@ void RiuSummaryQwtPlot::contextMenuEvent( QContextMenuEvent* event )
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
auto summaryCase = summaryCurve->summaryCaseY();
|
||||
if ( summaryCase )
|
||||
{
|
||||
int summaryCaseId = summaryCase->caseId();
|
||||
QVariant summaryCaseIdVariant( summaryCaseId );
|
||||
|
||||
menuBuilder.addCmdFeatureWithUserData( "RicImportGridModelFromSummaryCurveFeature",
|
||||
"Open Grid Model",
|
||||
summaryCaseIdVariant );
|
||||
}
|
||||
}
|
||||
|
||||
if ( !curveClicked )
|
||||
{
|
||||
RimSummaryPlot* summaryPlot = static_cast<RimSummaryPlot*>( plotDefinition() );
|
||||
|
||||
Reference in New Issue
Block a user