Skip to content

Commit

Permalink
Manual merge pull request #3792 from handrok/Saving-synth-settings-in…
Browse files Browse the repository at this point in the history
…-two-scores from master

fix #274026: Unable to save synth settings in two scores in the same session
  • Loading branch information
anatoly-os committed Jul 17, 2018
1 parent 4e4cfce commit 15ebb47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mscore/synthcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ void SynthControl::setMeter(float l, float r, float left_peak, float right_peak)
gain->setMeterVal(1, r, right_peak);
}

//---------------------------------------------------------
// setScore
//---------------------------------------------------------
void SynthControl::setScore(Score* s) {
_score = s;

loadButton->setEnabled(true);
saveButton->setEnabled(true);
}

//---------------------------------------------------------
// stop
//---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion mscore/synthcontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SynthControl : public QWidget, Ui::SynthControl {
SynthControl(QWidget* parent);
void setMeter(float, float, float, float);
void stop();
void setScore(Score* s) { _score = s; }
void setScore(Score* s);
void writeSettings();
void updateGui();
};
Expand Down

0 comments on commit 15ebb47

Please sign in to comment.