mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -27,14 +27,14 @@
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RicfOpenProject, "openProject");
|
||||
CAF_PDM_SOURCE_INIT( RicfOpenProject, "openProject" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicfOpenProject::RicfOpenProject()
|
||||
{
|
||||
RICF_InitField(&m_path, "path", QString(), "Path", "", "", "");
|
||||
RICF_InitField( &m_path, "path", QString(), "Path", "", "", "" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -42,27 +42,27 @@ RicfOpenProject::RicfOpenProject()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicfCommandResponse RicfOpenProject::execute()
|
||||
{
|
||||
QString projectPath = m_path;
|
||||
QFileInfo projectPathInfo(projectPath);
|
||||
if (!projectPathInfo.exists())
|
||||
QString projectPath = m_path;
|
||||
QFileInfo projectPathInfo( projectPath );
|
||||
if ( !projectPathInfo.exists() )
|
||||
{
|
||||
QDir startDir(RiaApplication::instance()->startDir());
|
||||
projectPath = startDir.absoluteFilePath(m_path);
|
||||
QDir startDir( RiaApplication::instance()->startDir() );
|
||||
projectPath = startDir.absoluteFilePath( m_path );
|
||||
}
|
||||
bool ok = RiaApplication::instance()->loadProject(projectPath);
|
||||
if (!ok)
|
||||
bool ok = RiaApplication::instance()->loadProject( projectPath );
|
||||
if ( !ok )
|
||||
{
|
||||
QString errMsg = QString("openProject: Unable to open project at %1").arg(m_path());
|
||||
RiaLogging::error(errMsg);
|
||||
return RicfCommandResponse(RicfCommandResponse::COMMAND_ERROR, errMsg);
|
||||
QString errMsg = QString( "openProject: Unable to open project at %1" ).arg( m_path() );
|
||||
RiaLogging::error( errMsg );
|
||||
return RicfCommandResponse( RicfCommandResponse::COMMAND_ERROR, errMsg );
|
||||
}
|
||||
|
||||
if (RiaRegressionTestRunner::instance()->isRunningRegressionTests())
|
||||
if ( RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
|
||||
{
|
||||
RiaRegressionTestRunner::regressionTestConfigureProject();
|
||||
}
|
||||
|
||||
RicfCommandFileExecutor::instance()->setLastProjectPath(projectPath);
|
||||
RicfCommandFileExecutor::instance()->setLastProjectPath( projectPath );
|
||||
|
||||
return RicfCommandResponse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user