Salome HOME
Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis).
authormzn <mzn@opencascade.com>
Tue, 29 Apr 2008 13:17:03 +0000 (13:17 +0000)
committermzn <mzn@opencascade.com>
Tue, 29 Apr 2008 13:17:03 +0000 (13:17 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 7be6b84dff1865ec29b218528c1e652de38bc3ef..4cea0a9ba294b275ee23315b7a9d1808ec45f206 100644 (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);