#3610 Well Path Import : Use last imported grid file as fallback path

This commit is contained in:
Magne Sjaastad committed 2018-11-02 11:36:46 +01:00
1 parent fa81d0411c
commit bd00ea7e84
1 file changed
+2 -1
@@ -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;