#3476 Regression Test : Use project folder as default for command file execution

This commit is contained in:
Magne Sjaastad committed 2018-10-10 08:02:41 +02:00
1 parent 046c05e76e
commit 3876a9dee1
1 file changed
+1 -1
@@ -41,7 +41,7 @@ bool RicRunCommandFileFeature::isCommandEnabled()
void RicRunCommandFileFeature::onActionTriggered(bool isChecked)
{
RiaApplication* app = RiaApplication::instance();
QString defaultDir = app->lastUsedDialogDirectory("COMMAND_FILE");
QString defaultDir = app->lastUsedDialogDirectoryWithFallbackToProjectFolder("COMMAND_FILE");
QString fileName = QFileDialog::getOpenFileName(nullptr, "Open ResInsight Command File", defaultDir, "ResInsight Command File (*.txt);;All files(*.*)");