SSIHUB: Test if well path is selected before import

This commit is contained in:
Magne Sjaastad 2013-10-23 08:30:48 +02:00
parent b93ff05bda
commit bcc1482532

View File

@ -558,9 +558,12 @@ QStringList RiuWellImportWizard::absoluteFilePathsToWellPaths() const
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
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;
}
}
}
}