From 4112f94a387c9f65d347cc021871184d24cda19d Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 3 Jul 2008 09:00:42 +0000 Subject: [PATCH] Fix for bug IPAL20043 : Problem of current folder definition during mesh export (Appendix for Mantis 0019903). --- src/SMESHGUI/SMESHGUI.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();