mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3476 Regression Test : Use project folder as default for command file execution
This commit is contained in:
parent
046c05e76e
commit
3876a9dee1
@ -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(*.*)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user