Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/ControlStream.py
diff options
context:
space:
mode:
authoramartin <olpc@xo-05-28-21.localdomain>2007-12-22 15:45:56 (GMT)
committer amartin <olpc@xo-05-28-21.localdomain>2007-12-22 15:45:56 (GMT)
commit0547c68b55579fca5eb1e87753bc1dc019aefb05 (patch)
tree441db538dbaab16b2d4fb334e033d9d8916d4fcf /common/Util/ControlStream.py
parent166e9267e94532fd5da667f958a4f5990f067db2 (diff)
keep fix
Diffstat (limited to 'common/Util/ControlStream.py')
-rw-r--r--common/Util/ControlStream.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/Util/ControlStream.py b/common/Util/ControlStream.py
index 5598b19..eea3150 100644
--- a/common/Util/ControlStream.py
+++ b/common/Util/ControlStream.py
@@ -64,11 +64,13 @@ class TamTamOStream:
def block_add( self, typeStr, active, centerX, centerY, child, data ):
if typeStr == "Drum" or typeStr == "Instrument":
- data = data[:] # don't overwrite the block's data
+ realId = data["id"] # don't overwrite the block's data
data["id"] = self.instrumentDB.getInstrument( data["id"] ).name
l = [ "block_add", typeStr, str(active), str(centerX), str(centerY), str(child), str(data) ]
self.file.write( " ".join([str(i) for i in l]))
self.file.write('\n')
+ if typeStr == "Drum" or typeStr == "Instrument":
+ data["id"] = realId
def desktop_store( self, filename, id ):
self.file.write( "desktop_store %d\n" % id )