mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#537) Showing error message box if opening a LAS file fails
This commit is contained in:
@@ -27,8 +27,11 @@
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RivWellPathPartMgr.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QMessageBox>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellPath, "WellPath");
|
||||
|
||||
@@ -187,6 +190,12 @@ RimWellLogFile* RimWellPath::readWellLogFile(const QString& logFilePath)
|
||||
wellLogFile->setFileName(logFilePath);
|
||||
if (!wellLogFile->readFile())
|
||||
{
|
||||
QString errorMessage = "Could not open the LAS file: \n" + logFilePath;
|
||||
|
||||
QMessageBox::warning(RiuMainWindow::instance(),
|
||||
"File open error",
|
||||
errorMessage);
|
||||
|
||||
delete wellLogFile;
|
||||
wellLogFile = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user