Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis).

This commit is contained in:
mzn 2008-04-29 13:17:03 +00:00
parent 681172f20f
commit 9764a38099

View File

@ -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);