mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Replace RiaApplication::instance()->project() with RimProject::current().
Also remove uneccessary includes of RiaApplication.h.
This commit is contained in:
committed by
Magne Sjaastad
parent
7972ff8c02
commit
c016c02e40
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "RicMoveWellLogFilesFeature.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellLogFile.h"
|
||||
#include "RimWellPath.h"
|
||||
@@ -43,7 +42,7 @@ bool RicMoveWellLogFilesFeature::isCommandEnabled()
|
||||
if ( !selectedWellLogFile ) return false;
|
||||
|
||||
// If only one well path exists, the move command is not applicable
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimProject* proj = RimProject::current();
|
||||
return proj->allWellPaths().size() > 1;
|
||||
}
|
||||
|
||||
@@ -55,7 +54,7 @@ void RicMoveWellLogFilesFeature::onActionTriggered( bool isChecked )
|
||||
const QVariant userData = this->userData();
|
||||
if ( !userData.isNull() && userData.type() == QVariant::String )
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimProject* proj = RimProject::current();
|
||||
|
||||
RimWellPath* destWellPath = proj->wellPathByName( userData.toString() );
|
||||
RimWellLogFile* wellLogFile = caf::firstAncestorOfTypeFromSelectedObject<RimWellLogFile*>();
|
||||
|
||||
Reference in New Issue
Block a user