]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug 0019870(Import/Export should show current directory). Correction.
authormzn <mzn@opencascade.com>
Sat, 7 Jun 2008 13:55:17 +0000 (13:55 +0000)
committermzn <mzn@opencascade.com>
Sat, 7 Jun 2008 13:55:17 +0000 (13:55 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 2d89fec36f9186b34e622d060bd4a2a01219e33d..6e590fca03d75b740b43fe0768333fc40bd1c6e8 100644 (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) {