Fix crash when cancelling export faults

This commit is contained in:
Bjørnar Grip Fjær 2017-04-04 17:15:28 +02:00
parent d15bdf04ef
commit dc1a207313

View File

@ -70,6 +70,11 @@ void RicExportFaultsFeature::onActionTriggered(bool isChecked)
QString selectedDir = QFileDialog::getExistingDirectory(NULL, tr("Select Directory"), defaultDir);
if (selectedDir.isNull()) {
// Stop if folder selection was cancelled.
return;
}
for (RimFault* rimFault : selectedFaults)
{
RimEclipseCase* eclCase = nullptr;