Skip to content

Commit

Permalink
Fix #282670 - rename parts -> missing GUI refresh in tabbar
Browse files Browse the repository at this point in the history
Force redraw by setting setExcerptsChanged when title changes.
  • Loading branch information
njvdberg committed May 4, 2020
1 parent 877b596 commit e62a247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mscore/excerptsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ExcerptsDialog::ExcerptsDialog(MasterScore* s, QWidget* parent)

moveUpButton->setIcon(*icons[int(Icons::arrowUp_ICON)]);
moveDownButton->setIcon(*icons[int(Icons::arrowDown_ICON)]);

for (int i = 1; i <= VOICES; i++) {
//partList->model()->setHeaderData(i, Qt::Horizontal, MScore::selectColor[i-1], Qt::BackgroundRole);
partList->header()->resizeSection(i, 30);
Expand Down Expand Up @@ -410,6 +410,7 @@ void ExcerptsDialog::titleChanged(const QString& s)
return;
cur->excerpt()->setTitle(s);
cur->setText(s);
score->masterScore()->setExcerptsChanged(true);
}

//---------------------------------------------------------
Expand Down

0 comments on commit e62a247

Please sign in to comment.