Skip to content

Commit

Permalink
fix #300279: Impossible to apply properties to all parts in 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jan 29, 2020
1 parent 2000c85 commit 413cb1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mscore/editstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EditStyle::EditStyle(Score* s, QWidget* parent)
setupUi(this);
setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
buttonApplyToAllParts = buttonBox->addButton(tr("Apply to all Parts"), QDialogButtonBox::ApplyRole);
buttonApplyToAllParts->setEnabled(!cs->isMaster());
//buttonApplyToAllParts->setEnabled(!cs->isMaster()); // set in showEvent() now
buttonTogglePagelist->setIcon(QIcon(*icons[int(Icons::goNext_ICON)]));
setModal(true);

Expand Down Expand Up @@ -780,6 +780,7 @@ void EditStyle::showEvent(QShowEvent* ev)
setValues();
pageList->setFocus();
cs->startCmd();
buttonApplyToAllParts->setEnabled(!cs->isMaster());
QWidget::showEvent(ev);
}

Expand Down Expand Up @@ -1085,8 +1086,8 @@ void EditStyle::setValues()
dontHideStavesInFirstSystem->setEnabled(hideEmptyStaves->isChecked());

// figured bass
for(int i = 0; i < comboFBFont->count(); i++)
if(comboFBFont->itemText(i) == lstyle.value(Sid::figuredBassFontFamily).toString()) {
for (int i = 0; i < comboFBFont->count(); i++)
if (comboFBFont->itemText(i) == lstyle.value(Sid::figuredBassFontFamily).toString()) {
comboFBFont->setCurrentIndex(i);
break;
}
Expand Down

0 comments on commit 413cb1e

Please sign in to comment.