fix creation of filter list for export dialog

This commit is contained in:
wmayer
2019-02-21 23:03:47 +01:00
parent 397418078a
commit f6d9ec8568

View File

@@ -273,17 +273,17 @@ void StdCmdExport::activated(int iMsg)
}
// fill the list of registered endings
QString formatList;
QStringList filterList;
std::map<std::string, std::string> FilterList = App::GetApplication().getExportFilters();
std::map<std::string, std::string>::const_iterator jt;
for (jt=FilterList.begin();jt != FilterList.end();++jt) {
// ignore the project file format
if (jt->first.find("(*.FCStd)") == std::string::npos) {
formatList += QLatin1String(jt->first.c_str());
formatList += QLatin1String(";;");
filterList << QString::fromLatin1(jt->first.c_str());
}
}
QString formatList = filterList.join(QLatin1String(";;"));
Base::Reference<ParameterGrp> hPath = App::GetApplication().GetUserParameter().GetGroup("BaseApp")
->GetGroup("Preferences")->GetGroup("General");
QString selectedFilter = QString::fromStdString(hPath->GetASCII("FileExportFilter"));