#3476 Regression Test : Use lastUsedDialogDirectoryWithFallbackToProjectFolder

This commit is contained in:
Magne Sjaastad
2018-10-09 16:05:15 +02:00
parent fd5b9653ba
commit 046c05e76e
10 changed files with 14 additions and 32 deletions

View File

@@ -54,9 +54,8 @@ void RicExportFishbonesLateralsFeature::onActionTriggered(bool isChecked)
CVF_ASSERT(wellPath);
RiaApplication* app = RiaApplication::instance();
QString projectFolder = app->currentProjectPath();
QString defaultDir = app->lastUsedDialogDirectoryWithFallback("WELL_PATH_EXPORT_DIR", projectFolder);
QString defaultDir = app->lastUsedDialogDirectoryWithFallbackToProjectFolder("WELL_PATH_EXPORT_DIR");
auto fileName = caf::Utils::makeValidFileBasename(wellPath->name()) + "_laterals.dev";
auto dialogData = EXP::openDialog();