From bd00ea7e84281ca382d582ff47bd535863c133e8 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 2 Nov 2018 08:16:47 +0100 Subject: [PATCH] #3610 Well Path Import : Use last imported grid file as fallback path --- .../WellPathCommands/RicWellPathsImportFileFeature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/WellPathCommands/RicWellPathsImportFileFeature.cpp b/ApplicationCode/Commands/WellPathCommands/RicWellPathsImportFileFeature.cpp index 4adb593e5d..0538139de2 100644 --- a/ApplicationCode/Commands/WellPathCommands/RicWellPathsImportFileFeature.cpp +++ b/ApplicationCode/Commands/WellPathCommands/RicWellPathsImportFileFeature.cpp @@ -49,7 +49,8 @@ void RicWellPathsImportFileFeature::onActionTriggered(bool isChecked) { // Open dialog box to select well path files RiaApplication* app = RiaApplication::instance(); - QString defaultDir = app->lastUsedDialogDirectory("WELLPATH_DIR"); + QString lastUsedGridFolder = app->lastUsedDialogDirectory("BINARY_GRID"); + QString defaultDir = app->lastUsedDialogDirectoryWithFallback("WELLPATH_DIR", lastUsedGridFolder); QStringList wellPathFilePaths = QFileDialog::getOpenFileNames(Riu3DMainWindowTools::mainWindowWidget(), "Import Well Paths", defaultDir, "Well Paths (*.json *.asc *.asci *.ascii *.dev);;All Files (*.*)"); if (wellPathFilePaths.size() < 1) return;