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-02-20 05:01:20 (GMT)
committer amartin <olpc@localhost.localdomain>2007-02-20 05:01:20 (GMT)
commit09b31158f45345d586fd48ec349aebf00a676e08 (patch)
treeb95fb13d963f3113cad64cf1cd8b19f4c444589e /Util/NoteDB.py
parentaea628ad8d2b592bdbb149f3c562f031cd1bba22 (diff)
tuneInteface (2nd try, fu git)
Diffstat (limited to 'Util/NoteDB.py')
-rw-r--r--Util/NoteDB.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Util/NoteDB.py b/Util/NoteDB.py
index 37335d6..f96123b 100644
--- a/Util/NoteDB.py
+++ b/Util/NoteDB.py
@@ -140,9 +140,6 @@ class NoteDB:
new = {}
for cp in sorted:
id = self._newPage( self.pages[cp].beats )
- for t in range(Config.NUMBER_OF_TRACKS):
- for n in self.noteD[cp][t].keys():
- self.duplicateNote( cp, t, n, id, t, 0 )
self._insertPage( id, after )
after = id
new[cp] = id
@@ -150,6 +147,11 @@ class NoteDB:
for l in self.pageListeners:
l.notifyPageDuplicate( new, first )
+ for cp in sorted:
+ for t in range(Config.NUMBER_OF_TRACKS):
+ for n in self.noteD[cp][t].keys():
+ self.duplicateNote( cp, t, n, new[cp], t, 0 )
+
def movePages( self, which, after = False ):
sorted = []
if after: at = self.tune.index(after)+1