fix window title when displaying parts

This commit is contained in:
lasconic 2018-04-04 19:06:21 +02:00
parent b48eab1c84
commit 25410a15fa

View file

@ -5500,14 +5500,14 @@ void MuseScore::restoreGeometry(QWidget *const qw)
void MuseScore::updateWindowTitle(Score* score)
{
#ifdef Q_OS_MAC
if (score->created()) {
setWindowTitle(score->title());
if (!cs->isMaster())
setWindowTitle(cs->masterScore()->title() + "-" + cs->title());
else
setWindowTitle(cs->title());
if (score->masterScore()->created())
setWindowFilePath(QString());
}
else {
setWindowTitle(QString());
else
setWindowFilePath(score->masterScore()->fileInfo()->absoluteFilePath());
}
#else
setWindowTitle(MUSESCORE_NAME_VERSION ": " + score->title());
#endif