Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/NoteDB.py
diff options
context:
space:
mode:
authoramartin <olpc@localhost.localdomain>2007-03-02 18:52:14 (GMT)
committer amartin <olpc@localhost.localdomain>2007-03-02 18:52:14 (GMT)
commit0a2a741999e5a218bd7d29af71931194464aade3 (patch)
tree4bdc8becae3c7236366708fbe6b8030e85130607 /Util/NoteDB.py
parentc9c7d36200ca57a3be2de5dc5c7c8e6667484795 (diff)
pasted notes use correct instrument
Diffstat (limited to 'Util/NoteDB.py')
-rw-r--r--Util/NoteDB.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Util/NoteDB.py b/Util/NoteDB.py
index 61e30b3..c4399ec 100644
--- a/Util/NoteDB.py
+++ b/Util/NoteDB.py
@@ -493,7 +493,7 @@ class NoteDB:
if not area["tracks"][trackMap[t]]: continue
if instrumentMap.has_key(t):
updateInstrument = True
- instrumentName = Config.INSTRUMENTSID[ instrumentMap[t] ]
+ instrumentId = instrumentMap[t]
else:
updateInstrument = False
tdeleteStream = []
@@ -530,7 +530,7 @@ class NoteDB:
newcs.pageId = p
newcs.trackId = t
if updateInstrument:
- newcs.instrumentFlag = instrumentName
+ newcs.instrumentId = instrumentId
# TODO update any other parameters?
taddStream.append( newcs )
if len(taddStream):