diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-07-08 00:00:48 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-07-08 00:00:48 (GMT) |
commit | 43b11305811cc650b626febf13210fe4ac984edf (patch) | |
tree | fd34c3891b66131f2321a5330af2baa68daeca3a /Edit | |
parent | c6ac7d4bf2db10c3196ab08ea36db05ab9daa94b (diff) |
keep current orchestra when deleting all pages
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/MainWindow.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index 10d8da1..4f2d793 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -1322,9 +1322,13 @@ class MainWindow( SubActivity ): def pageDelete( self, pageIds = -1 ): - if pageIds == -1: pageIds = self.tuneInterface.getSelectedIds() + if pageIds == -1: + pageIds = self.tuneInterface.getSelectedIds() + instrumentsIds = [] + for inst in self.trackInstrument: + instrumentsIds.append(inst.instrumentId) - self.noteDB.deletePages( pageIds[:] ) + self.noteDB.deletePages( pageIds[:], instrumentsIds ) def pageDuplicate( self, after = -1, pageIds = False ): |