Moved static method to the class where it belongs (more than it did).

This commit is contained in:
Pål Hagen
2015-09-25 18:14:25 +02:00
parent 803cc4328d
commit aa36a3f5e6
5 changed files with 43 additions and 38 deletions

View File

@@ -175,42 +175,6 @@ void RimWellPath::readWellPathFile()
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogFile* RimWellPath::readWellLogFile(const QString& logFilePath)
{
QFileInfo fi(logFilePath);
RimWellLogFile* wellLogFile = NULL;
if (fi.suffix().toUpper().compare("LAS") == 0)
{
QString errorMessage;
wellLogFile = new RimWellLogFile();
wellLogFile->setFileName(logFilePath);
if (!wellLogFile->readFile(&errorMessage))
{
QString displayMessage = "Could not open the LAS file: \n" + logFilePath;
if (!errorMessage.isEmpty())
{
displayMessage += "\n\n";
displayMessage += errorMessage;
}
QMessageBox::warning(RiuMainWindow::instance(),
"File open error",
displayMessage);
delete wellLogFile;
wellLogFile = NULL;
}
}
return wellLogFile;
}
//--------------------------------------------------------------------------------------------------
/// Read JSON file containing well path data
//--------------------------------------------------------------------------------------------------