mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 03:04:17 +05:00
Fix for bug 0019903: EDF 781 SMESH: give a default name when exporting mesh.
This commit is contained in:
parent
d408364886
commit
4f55f53101
@ -359,7 +359,8 @@ using namespace std;
|
||||
anInitialPath = QDir::currentDirPath();
|
||||
|
||||
if ( theCommandID != 122 && theCommandID != 125 && theCommandID != 140 && theCommandID != 141)
|
||||
aFilename = SUIT_FileDlg::getFileName(SMESHGUI::desktop(), anInitialPath, aFilter, aTitle, false);
|
||||
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();
|
||||
@ -372,6 +373,7 @@ using namespace std;
|
||||
fd->setSelectedFilter( QObject::tr("STL ASCII (*.stl)") );
|
||||
if ( !anInitialPath.isEmpty() )
|
||||
fd->setDir( anInitialPath );
|
||||
fd->setSelection(anIObject->getName());
|
||||
bool is_ok = false;
|
||||
while (!is_ok) {
|
||||
fd->exec();
|
||||
@ -401,6 +403,7 @@ using namespace std;
|
||||
fd->SetChecked(toCreateGroups);
|
||||
if ( !anInitialPath.isEmpty() )
|
||||
fd->setDir( anInitialPath );
|
||||
fd->setSelection(anIObject->getName());
|
||||
bool is_ok = false;
|
||||
while (!is_ok) {
|
||||
fd->exec();
|
||||
|
Loading…
Reference in New Issue
Block a user