editor: paste ID+1: midi-related addresses should not be incremented

This commit is contained in:
bordun 2020-10-25 18:06:59 +01:00
parent b34c5598e2
commit 573a07fc4d
2 changed files with 2 additions and 1 deletions

View file

@ -182,7 +182,7 @@ var incrementWidget = function(data, root){
data.address = 'auto'
} else if (address !== 'auto') {
} else if (!address.match(/^auto|\/control|\/note|\/program|\/sysex|\/key_pressure|\/channel_pressure|\/pitch/) !== 'auto') {
var addressref
while (fakeStore.address.indexOf(address) != -1 || widgetManager.getWidgetByAddress(addressref).length) {