Skip to content

Commit

Permalink
Merge pull request #3157 from MarcSabatella/97106-no-update-on-save
Browse files Browse the repository at this point in the history
fix #97106: remove update on save
  • Loading branch information
lasconic committed Apr 26, 2017
2 parents 2839f55 + 8f7d59d commit a5bcf16
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libmscore/scorefile.cpp
Expand Up @@ -449,12 +449,10 @@ bool Score::saveFile()
QFile::setPermissions(name, QFile::ReadOwner | QFile::WriteOwner | QFile::ReadUser
| QFile::ReadGroup | QFile::ReadOther);

startCmd();
info.refresh(); // update file info
setLayoutAll(true);
endCmd(); // force relayout
undo()->undo(); // don't leave anything on undo stack
endUndoRedo();
// TODO: update score
// calling update() has undo implications
// see https://musescore.org/en/node/97106

undo()->setClean();
setSaved(true);
Expand Down

0 comments on commit a5bcf16

Please sign in to comment.