Skip to content

Commit

Permalink
Merge pull request #3225 from MarcSabatella/81711-restore-name
Browse files Browse the repository at this point in the history
fix #81711: bad path on restore session
  • Loading branch information
lasconic committed Jul 3, 2017
2 parents a41e08d + 59ff5f5 commit 2bf173a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mscore/musescore.cpp
Expand Up @@ -3675,8 +3675,11 @@ bool MuseScore::restoreSession(bool always)
else if (tag == "path") {
Score* score = readScore(e.readElementText());
if (score) {
if (!name.isEmpty())
score->setName(name);
if (!name.isEmpty()) {
QFileInfo* fi = score->fileInfo();
fi->setFile(name);
// TODO: what if that path is no longer valid?
}
if (cleanExit) {
// override if last session did a clean exit
created = false;
Expand Down

0 comments on commit 2bf173a

Please sign in to comment.