From: mzn Date: Tue, 29 Apr 2008 13:17:03 +0000 (+0000) Subject: Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). X-Git-Tag: V4_1_2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9764a38099afe6285ad46258c66a6763b2dd721e;p=modules%2Fsmesh.git Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). --- 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);