From ce51fca5456509aee994c3da1f816a51c73f7eca Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 29 Apr 2008 13:20:47 +0000 Subject: [PATCH] Additional fix for bug NPAL19028 (see remarks from Olivier Giorgis). --- src/VISUGUI/VisuGUI.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.2