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
@@ -49,7 +49,7 @@ caf::PdmScriptResponse RicfCreateSaturationPressurePlots::execute()
|
||||
std::vector<int> caseIds = m_caseIds();
|
||||
if ( caseIds.empty() )
|
||||
{
|
||||
RimProject* project = RiaApplication::instance()->project();
|
||||
RimProject* project = RimProject::current();
|
||||
if ( project )
|
||||
{
|
||||
auto eclipeCases = project->eclipseCases();
|
||||
@@ -67,7 +67,7 @@ caf::PdmScriptResponse RicfCreateSaturationPressurePlots::execute()
|
||||
return caf::PdmScriptResponse( caf::PdmScriptResponse::COMMAND_ERROR, error );
|
||||
}
|
||||
|
||||
RimProject* project = RiaApplication::instance()->project();
|
||||
RimProject* project = RimProject::current();
|
||||
if ( !project )
|
||||
{
|
||||
QString error( "No project loaded" );
|
||||
|
||||
Reference in New Issue
Block a user