Skip to content

Commit

Permalink
Merge pull request #2806 from Jojo-Schmitz/title
Browse files Browse the repository at this point in the history
fix #123146: window title changes after save score
  • Loading branch information
lasconic committed Sep 3, 2016
2 parents 23ad20d + 1e38318 commit 755cd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ bool MuseScore::saveFile(Score* score)
return false;
}
score->setCreated(false);
setWindowTitle("MuseScore: " + score->fileInfo()->completeBaseName());
setWindowTitle(QString(MUSESCORE_NAME_VERSION) + ": " + score->fileInfo()->completeBaseName());
int idx = scoreList.indexOf(score->masterScore());
tab1->setTabText(idx, score->fileInfo()->completeBaseName());
if (tab2)
Expand Down Expand Up @@ -1796,7 +1796,7 @@ bool MuseScore::saveAs(Score* cs, bool saveCopy, const QString& path, const QStr

if (rv && !saveCopy) {
cs->masterScore()->fileInfo()->setFile(fn);
setWindowTitle("MuseScore: " + cs->fileInfo()->completeBaseName());
setWindowTitle(QString(MUSESCORE_NAME_VERSION) + ": " + cs->fileInfo()->completeBaseName());
cs->undoStack()->setClean();
dirtyChanged(cs);
cs->setCreated(false);
Expand Down

0 comments on commit 755cd05

Please sign in to comment.