Skip to content

Commit

Permalink
mark MuseScore 1.3 files as imported file to avoid accidental overrid…
Browse files Browse the repository at this point in the history
…e, see #27291
  • Loading branch information
lasconic committed Jul 14, 2014
1 parent 3976a88 commit a316681
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mscore/file.cpp
Expand Up @@ -1802,7 +1802,11 @@ Score::FileError readScore(Score* score, QString name, bool ignoreVersionError)
Score::FileError rv = score->loadMsc(name, ignoreVersionError);
if (rv != Score::FileError::FILE_NO_ERROR)
return rv;
score->setCreated(false);
if(score->mscVersion() <= 114) {
score->setCreated(true); // force save as for imported files
}
else
score->setCreated(false);
}
else {
typedef Score::FileError (*ImportFunction)(Score*, const QString&);
Expand Down

0 comments on commit a316681

Please sign in to comment.