mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash when cancelling export faults
This commit is contained in:
parent
d15bdf04ef
commit
dc1a207313
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user