From f6d9ec856853b5f7ba6e16ecfa8d9b8cd0f2e38f Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 21 Feb 2019 23:03:47 +0100 Subject: [PATCH] fix creation of filter list for export dialog --- src/Gui/CommandDoc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index 74d5456546..a8f13a80be 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -273,17 +273,17 @@ void StdCmdExport::activated(int iMsg) } // fill the list of registered endings - QString formatList; + QStringList filterList; std::map FilterList = App::GetApplication().getExportFilters(); std::map::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 hPath = App::GetApplication().GetUserParameter().GetGroup("BaseApp") ->GetGroup("Preferences")->GetGroup("General"); QString selectedFilter = QString::fromStdString(hPath->GetASCII("FileExportFilter"));