Fix for bug 0019870(Import/Export should show current directory). Correction.

This commit is contained in:
mzn 2008-06-07 13:55:17 +00:00
parent 3e81347908
commit 9400fe5867

View File

@ -370,7 +370,7 @@ using namespace std;
fd->setCaption( aTitle );
fd->setFilters( filters );
fd->setSelectedFilter( QObject::tr("STL ASCII (*.stl)") );
if ( anInitialPath.isEmpty() )
if ( !anInitialPath.isEmpty() )
fd->setDir( anInitialPath );
bool is_ok = false;
while (!is_ok) {
@ -399,7 +399,7 @@ using namespace std;
//fd->setSelectedFilter( QObject::tr("MED 2.2 (*.med)") );
fd->setSelectedFilter(aDefaultFilter);
fd->SetChecked(toCreateGroups);
if ( anInitialPath.isEmpty() )
if ( !anInitialPath.isEmpty() )
fd->setDir( anInitialPath );
bool is_ok = false;
while (!is_ok) {