+ split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog

This commit is contained in:
wmayer
2015-10-06 18:45:06 +02:00
parent 967eead27a
commit 48bf07e622
8 changed files with 53 additions and 50 deletions

View File

@@ -806,11 +806,13 @@ CmdPartImportCurveNet::CmdPartImportCurveNet()
void CmdPartImportCurveNet::activated(int iMsg)
{
QStringList filter;
filter << QObject::tr("All CAD Files (*.stp *.step *.igs *.iges *.brp *.brep)");
filter << QObject::tr("STEP (*.stp *.step)");
filter << QObject::tr("IGES (*.igs *.iges)");
filter << QObject::tr("BREP (*.brp *.brep)");
filter << QObject::tr("All Files (*.*)");
filter << QString::fromLatin1("%1 (*.stp *.step *.igs *.iges *.brp *.brep)")
.arg(QObject::tr("All CAD Files"));
filter << QString::fromLatin1("STEP (*.stp *.step)");
filter << QString::fromLatin1("IGES (*.igs *.iges)");
filter << QString::fromLatin1("BREP (*.brp *.brep)");
filter << QString::fromLatin1("%1 (*.*)")
.arg(QObject::tr("All Files"));
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), filter.join(QLatin1String(";;")));
if (!fn.isEmpty()) {