~laszlok/jokosher/cpu-usage

« back to all changes in this revision

Viewing changes to Jokosher/Event.py

  • Committer: Laszlo Pandy
  • Date: 2008-06-22 16:52:13 UTC
  • Revision ID: bzr@laszlopandy.com-20080622165213-9h3nhhxs1fpoif6u
Make the event lane viewer properly update when an event is joined (and 
therefore removed) by using the proper Delete() function (which calls 
the update) instead of removing it from the list manually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
                        self.__fadePointsDict = newDict
497
497
                        self.__UpdateAudioFadePoints()
498
498
                        
 
499
                #create an undo action that is not attached to the project so that
 
500
                # the following delete will not be undone (it will be re-split not resurrected)
 
501
                nullAction = UndoSystem.AtomicUndoAction()
499
502
                # Now that they're joined, move delete the rightEvent
500
 
                if joinEvent in self.instrument.events:
501
 
                        self.instrument.events.remove(joinEvent)
502
 
                if not joinEvent in self.instrument.graveyard:
503
 
                        self.instrument.graveyard.append(joinEvent)
 
503
                joinEvent.Delete(_undoAction_=nullAction)
504
504
                
505
505
                self.emit("length")
506
506
                self.emit("position")