From: mkr Date: Thu, 3 Jul 2008 09:00:42 +0000 (+0000) Subject: Fix for bug IPAL20043 : Problem of current folder definition during mesh export ... X-Git-Tag: V4_1_4a1~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4112f94a387c9f65d347cc021871184d24cda19d;p=modules%2Fsmesh.git Fix for bug IPAL20043 : Problem of current folder definition during mesh export (Appendix for Mantis 0019903). --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 78f79cd15..0721eaeaa 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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::const_iterator it = aFilterMapSTL.begin();