if (!aPanel->GetSelectedEntities().IsEmpty())
{
//Export selected items to SX file
- QString aFileName = SUIT_FileDlg::getFileName( module()->getApp()->desktop(), "", aFilter, tr( "EXPORT_SINUSX" ), false );
+ QString firstName = aPanel->GetSelectedEntities().First()->GetName(); // name of the fist object is used as a proposal for the filename
+ firstName = firstName + ".sx";
+ QString aFileName = SUIT_FileDlg::getFileName( module()->getApp()->desktop(), firstName, aFilter, tr( "EXPORT_SINUSX" ), false );
HYDROData_SinusX anExporter;
anExporter.Export(aFileName, aPanel->GetSelectedEntities());
}