Skip to content
Snippets Groups Projects
Commit ef78007a authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Remove empty filter field of save musicXML file dialog

- wrap strings properly
parent 10ac2bd3
No related branches found
No related tags found
No related merge requests found
......@@ -351,8 +351,8 @@ QString TnootkaQML::getXmlToSave(const QString& fileName) {
QStringLiteral("musicxml|xml"));
#else
saveFile = TfileDialog::getSaveFileName(qApp->translate("TmainScoreObject", "Save melody as:"), GLOB->lastXmlDir() + QDir::separator() + fileName,
qApp->translate("TmainScoreObject", "Compressed MusicXML file") + QLatin1String(" (*.mxl);;")
+ qTR("TmainScoreObject", "MusicXML file") + QLatin1String(" (*.musicxml *.xml);;"),
qApp->translate("TmainScoreObject", "Compressed MusicXML file") + QLatin1String(" - mxl (*.mxl);;")
+ qTR("TmainScoreObject", "MusicXML file") + QLatin1String(" (*.musicxml *.xml)"),
&filter);
#endif
if (!saveFile.isEmpty()) {
......@@ -360,9 +360,9 @@ QString TnootkaQML::getXmlToSave(const QString& fileName) {
//if the dialog does not retrieve an extension for the file we deduct it from the filter
if (QFileInfo(saveFile).suffix().isEmpty()) {
if (filter.endsWith(QLatin1String("(*.mxl)"))) {
saveFile += ".mxl";
saveFile += QLatin1String(".mxl");
} else {
saveFile += ".musicxml";
saveFile += QLatin1String(".musicxml");
};
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment