From 9400fe5867db68acea4555b2386d663a5c3216d4 Mon Sep 17 00:00:00 2001 From: mzn Date: Sat, 7 Jun 2008 13:55:17 +0000 Subject: [PATCH] Fix for bug 0019870(Import/Export should show current directory). Correction. --- src/SMESHGUI/SMESHGUI.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2