mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Simplify access to RimMainPlotCollection
* Add current() to RimMainPlotCollection to avoid include of RimProject * Remove "segment" prefix * Reload data when RftCase changes
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include "RicNewRftPlotFeature.h"
|
||||
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimRftPlotCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
@@ -58,9 +57,7 @@ bool RicNewRftPlotFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicNewRftPlotFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RimProject* proj = RimProject::current();
|
||||
|
||||
RimRftPlotCollection* rftPlotColl = proj->mainPlotCollection()->rftPlotCollection();
|
||||
RimRftPlotCollection* rftPlotColl = RimMainPlotCollection::current()->rftPlotCollection();
|
||||
if ( rftPlotColl )
|
||||
{
|
||||
QString wellName = selectedWellName();
|
||||
|
||||
Reference in New Issue
Block a user