mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
Refactor: use new base class WellLog where possible.
This commit is contained in:
1 parent
a0ebb6e496
commit
0477371e0d
10 files changed
+81
-51
No files matched your search
@@ -48,7 +48,7 @@ bool RicNewWellLogFileCurveFeature::isCommandEnabled() const
|
||||
{
|
||||
if ( RicWellLogPlotCurveFeatureImpl::parentWellRftPlot() ) return false;
|
||||
return ( caf::SelectionManager::instance()->selectedItemAncestorOfType<RimWellLogTrack>() != nullptr && wellLogFilesAvailable() ) ||
|
||||
RicWellLogTools::selectedWellPathWithLogFile() != nullptr;
|
||||
RicWellLogTools::selectedWellPathWithLog() != nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -63,7 +63,7 @@ void RicNewWellLogFileCurveFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
else
|
||||
{
|
||||
RimWellPath* wellPath = RicWellLogTools::selectedWellPathWithLogFile();
|
||||
RimWellPath* wellPath = RicWellLogTools::selectedWellPathWithLog();
|
||||
if ( wellPath )
|
||||
{
|
||||
RimWellLogTrack* newWellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
||||
|
||||
Reference in new issue
Block a user