From 9764a38099afe6285ad46258c66a6763b2dd721e Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 29 Apr 2008 13:17:03 +0000 Subject: [PATCH] Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). --- src/SMESHGUI/SMESHGUI.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 7be6b84df..4cea0a9ba 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -182,8 +182,13 @@ using namespace std; }else if (theCommandID == 111){ filter.append(QObject::tr("DAT files (*.dat)")); } + + QString anInitialPath = ""; + if ( SUIT_FileDlg::getLastVisitedPath().isEmpty() ) + anInitialPath = QDir::currentDirPath(); + QString filename = SUIT_FileDlg::getFileName(SMESHGUI::desktop(), - QDir::currentDirPath(), + anInitialPath, filter, QObject::tr("Import mesh"), true); -- 2.39.2