sforkowany z mirror/rnsutils
1
0
Forkuj 0

Remove only first matching tag

Current implementation would fail when iterating on the next
element, looking for tags to remove as we changed the underlying
collection. Stopping on first occurence is a fine workaround.
master
Olivier Jolly 2016-02-02 14:46:48 +01:00
rodzic c65b766257
commit f4b10471fa
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -223,6 +223,7 @@ class RenoiseInstrument(object):
tag = self.root.GlobalProperties.Tags.Tag[tag_idx]
if tag.text == tag_to_remove:
del self.root.GlobalProperties.Tags.Tag[tag_idx]
return
def cleanup(self):
# ensure that key mapping remains in the limits of what renoise supports