From 219e403769be05aea0973afa0646e904a29bed43 Mon Sep 17 00:00:00 2001 From: Karsten Rink <karsten.rink@ufz.de> Date: Mon, 14 Oct 2013 15:20:00 +0200 Subject: [PATCH] Fixes an error where OGS files were not added to Recent -=Files=- menu when they where opened from a tree view. --- Gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gui/mainwindow.cpp b/Gui/mainwindow.cpp index dff9df11070..60b504d50b8 100644 --- a/Gui/mainwindow.cpp +++ b/Gui/mainwindow.cpp @@ -580,6 +580,8 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) { this->loadFEMConditionsFromFile(fileName); } + + emit fileUsed(fileName); } else if (t == ImportFileType::FEFLOW) { @@ -702,8 +704,6 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) //settings.setValue("lastOpenedVtkFileDirectory", dir.absolutePath()); } updateDataViews(); - - if (t == ImportFileType::OGS) emit fileUsed(fileName); } void MainWindow::updateDataViews() -- GitLab