SSIHUB: Test if well path is selected before import

This commit is contained in:
Magne Sjaastad committed 2013-10-23 08:30:48 +02:00
1 parent b93ff05bda
commit bcc1482532
1 file changed
+3
@@ -558,6 +558,8 @@ QStringList RiuWellImportWizard::absoluteFilePathsToWellPaths() const
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
QString wellStatus;
if (wellPathEntry->selected)
{
if (QFile::exists(oilField->wells[wIdx]->wellPathFilePath))
{
filePaths += oilField->wells[wIdx]->wellPathFilePath;
@@ -567,6 +569,7 @@ QStringList RiuWellImportWizard::absoluteFilePathsToWellPaths() const
}
}
}
}
return filePaths;
}