mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add delete plot comand to subplot context menu
This commit is contained in:
parent
2c1ef661b0
commit
4ef1f73a58
@ -192,6 +192,9 @@ void RiuSummaryPlot::showContextMenu( QPoint pos )
|
||||
}
|
||||
}
|
||||
|
||||
menuBuilder.addSeparator();
|
||||
menuBuilder << "RicDeleteSubPlotFeature";
|
||||
|
||||
menuBuilder.appendToMenu( &menu );
|
||||
|
||||
if ( !menu.actions().empty() )
|
||||
@ -201,7 +204,7 @@ void RiuSummaryPlot::showContextMenu( QPoint pos )
|
||||
// Parts of progress dialog GUI can be present after menu has closed related to
|
||||
// RicImportGridModelFromSummaryCurveFeature. Make sure the plot is updated, and call processEvents() to make
|
||||
// sure all GUI events are processed
|
||||
plotWidget()->update();
|
||||
// plotWidget()->update();
|
||||
QApplication::processEvents();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user