mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3610 Well Path Import : Use last imported grid file as fallback path
This commit is contained in:
parent
fa81d0411c
commit
bd00ea7e84
@ -49,7 +49,8 @@ void RicWellPathsImportFileFeature::onActionTriggered(bool isChecked)
|
|||||||
{
|
{
|
||||||
// Open dialog box to select well path files
|
// Open dialog box to select well path files
|
||||||
RiaApplication* app = RiaApplication::instance();
|
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 (*.*)");
|
QStringList wellPathFilePaths = QFileDialog::getOpenFileNames(Riu3DMainWindowTools::mainWindowWidget(), "Import Well Paths", defaultDir, "Well Paths (*.json *.asc *.asci *.ascii *.dev);;All Files (*.*)");
|
||||||
|
|
||||||
if (wellPathFilePaths.size() < 1) return;
|
if (wellPathFilePaths.size() < 1) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user