Skip to content

Commit

Permalink
Merge pull request #4767 from Jojo-Schmitz/musescore-3-file
Browse files Browse the repository at this point in the history
Fix #283063: "MuseScore File" string (under File -> Save As...) does not indicate which version you are about to save as
  • Loading branch information
anatoly-os authored May 1, 2019
2 parents f69f4ea + 47df5a1 commit 68fb453
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ bool MuseScore::saveFile(MasterScore* score)
if (t)
fn = t->plainText();
QString name = createDefaultFileName(fn);
QString f1 = tr("MuseScore File") + " (*.mscz)";
QString f2 = tr("Uncompressed MuseScore File") + " (*.mscx)";
QString f1 = tr("MuseScore 3 File") + " (*.mscz)";
QString f2 = tr("Uncompressed MuseScore 3 File") + " (*.mscx)"; // for debugging purposes

QSettings set;
if (mscore->lastSaveDirectory.isEmpty())
Expand Down Expand Up @@ -1684,7 +1684,7 @@ void MuseScore::exportFile()
fl.append(tr("Standard MIDI File") + " (*.mid)");
fl.append(tr("Compressed MusicXML File") + " (*.mxl)");
fl.append(tr("Uncompressed MusicXML File") + " (*.musicxml)");
fl.append(tr("Uncompressed MuseScore File") + " (*.mscx)");
fl.append(tr("Uncompressed MuseScore 3 File") + " (*.mscx)"); // for debugging purposes

QString saveDialogTitle = tr("Export");

Expand Down Expand Up @@ -1763,8 +1763,8 @@ bool MuseScore::exportParts()
fl.append(tr("Standard MIDI File") + " (*.mid)");
fl.append(tr("Compressed MusicXML File") + " (*.mxl)");
fl.append(tr("Uncompressed MusicXML File") + " (*.musicxml)");
fl.append(tr("MuseScore File") + " (*.mscz)");
fl.append(tr("Uncompressed MuseScore File") + " (*.mscx)");
fl.append(tr("MuseScore 3 File") + " (*.mscz)");
fl.append(tr("Uncompressed MuseScore 3 File") + " (*.mscx)"); // for debugging purposes

QString saveDialogTitle = tr("Export Parts");

Expand Down Expand Up @@ -2365,8 +2365,8 @@ Score::FileError readScore(MasterScore* score, QString name, bool ignoreVersionE
bool MuseScore::saveAs(Score* cs_, bool saveCopy)
{
QStringList fl;
fl.append(tr("MuseScore File") + " (*.mscz)");
fl.append(tr("Uncompressed MuseScore File") + " (*.mscx)"); // for debugging purposes
fl.append(tr("MuseScore 3 File") + " (*.mscz)");
fl.append(tr("Uncompressed MuseScore 3 File") + " (*.mscx)"); // for debugging purposes
QString saveDialogTitle = saveCopy ? tr("Save a Copy") :
tr("Save As");

Expand Down Expand Up @@ -2436,7 +2436,8 @@ bool MuseScore::saveSelection(Score* cs_)
return false;
}
QStringList fl;
fl.append(tr("MuseScore File") + " (*.mscz)");
fl.append(tr("MuseScore 3 File") + " (*.mscz)");
fl.append(tr("Uncompressed MuseScore 3 File") + " (*.mscx)"); // for debugging purposes
QString saveDialogTitle = tr("Save Selection");

QString saveDirectory;
Expand Down

0 comments on commit 68fb453

Please sign in to comment.