From: mzn Date: Sat, 7 Jun 2008 13:55:17 +0000 (+0000) Subject: Fix for bug 0019870(Import/Export should show current directory). Correction. X-Git-Tag: V4_1_3~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9400fe5867db68acea4555b2386d663a5c3216d4;p=modules%2Fsmesh.git Fix for bug 0019870(Import/Export should show current directory). Correction. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 2d89fec36..6e590fca0 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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) {