]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug IPAL20043 : Problem of current folder definition during mesh export ...
authormkr <mkr@opencascade.com>
Thu, 3 Jul 2008 09:00:42 +0000 (09:00 +0000)
committermkr <mkr@opencascade.com>
Thu, 3 Jul 2008 09:00:42 +0000 (09:00 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 78f79cd15915d1fbed2ae7d50896a241507a0023..0721eaeaa920fd5398f2d6de4acd85b920c3c4dc 100644 (file)
@@ -378,9 +378,11 @@ using namespace std;
        if ( SUIT_FileDlg::getLastVisitedPath().isEmpty() )
          anInitialPath = QDir::currentDirPath();
 
-       if ( theCommandID != 122 && theCommandID != 125 && theCommandID != 140 && theCommandID != 141)
+       if ( theCommandID != 122 && theCommandID != 125 && theCommandID != 140 && theCommandID != 141) {
+         if ( anInitialPath.isEmpty() ) anInitialPath = SUIT_FileDlg::getLastVisitedPath();
          aFilename = SUIT_FileDlg::getFileName(SMESHGUI::desktop(), anInitialPath + QString("/") + anIObject->getName(),
                                                aFilter, aTitle, false);
+       }
        else if(theCommandID == 140 || theCommandID == 141) { // Export to STL
          QStringList filters;
           QMap<QString, int>::const_iterator it = aFilterMapSTL.begin();