mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
SSIHUB: Test if well path is selected before import
This commit is contained in:
1 parent
b93ff05bda
commit
bcc1482532
1 file changed
+5
-2
@@ -558,9 +558,12 @@ QStringList RiuWellImportWizard::absoluteFilePathsToWellPaths() const
|
|||||||
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
|
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
|
||||||
|
|
||||||
QString wellStatus;
|
QString wellStatus;
|
||||||
if (QFile::exists(oilField->wells[wIdx]->wellPathFilePath))
|
if (wellPathEntry->selected)
|
||||||
{
|
{
|
||||||
filePaths += oilField->wells[wIdx]->wellPathFilePath;
|
if (QFile::exists(oilField->wells[wIdx]->wellPathFilePath))
|
||||||
|
{
|
||||||
|
filePaths += oilField->wells[wIdx]->wellPathFilePath;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user