From: mzn Date: Tue, 29 Apr 2008 13:20:47 +0000 (+0000) Subject: Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). X-Git-Tag: V4_1_2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce51fca5456509aee994c3da1f816a51c73f7eca;p=modules%2Fvisu.git Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 7cce3cc1..cafa1a48 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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);