]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis).
authormzn <mzn@opencascade.com>
Tue, 29 Apr 2008 13:20:47 +0000 (13:20 +0000)
committermzn <mzn@opencascade.com>
Tue, 29 Apr 2008 13:20:47 +0000 (13:20 +0000)
src/VISUGUI/VisuGUI.cxx

index 7cce3cc191403db93ec3c4a2805245af8c972769..cafa1a480cb11ae22a222850f6f2553b137a9fa5 100644 (file)
@@ -197,7 +197,8 @@ VisuGUI
   fd->setCaption( tr( "IMPORT_FROM_FILE" ) );
   fd->setFilters( aFilter );
   fd->SetChecked( toUseBuildProgress );
-  fd->setDir( QDir::currentDirPath() );
+  if ( SalomeApp_CheckFileDlg::getLastVisitedPath().isEmpty() )
+    fd->setDir( QDir::currentDirPath() );
   fd->exec();
   QFileInfo aFileInfo( fd->selectedFile() );
   toUseBuildProgress = fd->IsChecked();
@@ -258,9 +259,13 @@ VisuGUI
   aFilter.append( tr("FLT_TABLE_FILES") );
   aFilter.append( tr("FLT_ALL_FILES") );
 
+  QString anInitialPath = "";
+  if ( SUIT_FileDlg::getLastVisitedPath().isEmpty() )
+    anInitialPath = QDir::currentDirPath();
+
   QFileInfo aFileInfo =
     SUIT_FileDlg::getFileName(GetDesktop(this),
-                              QDir::currentDirPath(),
+                              anInitialPath,
                               aFilter,
                               tr("MEN_IMPORT_TABLE"),
                               true);