mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-03 21:30:35 +05:00
Fix for bug 0019870(Import/Export should show current directory).
This commit is contained in:
parent
1eb0283988
commit
e7e908bf4c
@ -95,10 +95,11 @@ static QString getFileName( QWidget* parent,
|
|||||||
if ( !caption.isEmpty() )
|
if ( !caption.isEmpty() )
|
||||||
fd->setCaption( caption );
|
fd->setCaption( caption );
|
||||||
|
|
||||||
if ( showCurrentDirInitially && SUIT_FileDlg::getLastVisitedPath().isEmpty() )
|
if ( !initial.isEmpty() )
|
||||||
fd->setSelection( QDir::currentDirPath() );
|
|
||||||
else if ( !initial.isEmpty() )
|
|
||||||
fd->setSelection( initial );
|
fd->setSelection( initial );
|
||||||
|
|
||||||
|
if ( showCurrentDirInitially && SUIT_FileDlg::getLastVisitedPath().isEmpty() )
|
||||||
|
fd->setDir( QDir::currentDirPath() );
|
||||||
|
|
||||||
fd->setFilters( filters );
|
fd->setFilters( filters );
|
||||||
|
|
||||||
@ -713,7 +714,7 @@ bool GEOMToolsGUI::Export()
|
|||||||
|
|
||||||
QString fileType;
|
QString fileType;
|
||||||
QString file = getFileName(app->desktop(), QString( IObject->getName() ), aMap, filters,
|
QString file = getFileName(app->desktop(), QString( IObject->getName() ), aMap, filters,
|
||||||
tr("GEOM_MEN_EXPORT"), false, fileType);
|
tr("GEOM_MEN_EXPORT"), false, fileType, true);
|
||||||
|
|
||||||
// User has pressed "Cancel" --> stop the operation
|
// User has pressed "Cancel" --> stop the operation
|
||||||
if ( file.isEmpty() || fileType.isEmpty() )
|
if ( file.isEmpty() || fileType.isEmpty() )
|
||||||
|
Loading…
Reference in New Issue
Block a user