Skip to content
Snippets Groups Projects
Commit 62a12c01 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Mute warning - reset scre scale binding of deleted instrument

parent f7584b70
No related branches found
No related tags found
No related merge requests found
......@@ -39,13 +39,18 @@ Flickable {
}
property real hiFactor: GLOB.instrument.getItemHeight(100) / 100.0
function setInstrument() {
if (instrument)
if (instrument) {
score.parent.scale = 1.0
instrument.destroy()
}
if (GLOB.instrument.type)
instrument = Qt.createComponent("qrc:/instruments/" + GLOB.instrument.qmlFile + ".qml").createObject(sizable)
else
instrument = null
if (GLOB.instrument.piano)
instrument.setAmbitus(score.scoreObj.lowestNote(), score.scoreObj.highestNote())
NOO.instrument = instrument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment