Skip to content

Commit

Permalink
fix #123146: window title changes after save score
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Sep 3, 2016
1 parent 5e649eb commit dcd8a89
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 @@ -432,7 +432,7 @@ bool MuseScore::saveFile(Score* score)
return false;
}
score->setCreated(false);
setWindowTitle("MuseScore: " + score->name());
setWindowTitle(QString(MUSESCORE_NAME_VERSION) + ": " + score->name());
int idx = scoreList.indexOf(score);
tab1->setTabText(idx, score->name());
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->fileInfo()->setFile(fn);
setWindowTitle("MuseScore: " + cs->name());
setWindowTitle(QString(MUSESCORE_NAME_VERSION) + ": " + cs->name());
cs->undo()->setClean();
dirtyChanged(cs);
cs->setCreated(false);
Expand Down

0 comments on commit dcd8a89

Please sign in to comment.