Changeset 1519

Show
Ignore:
Timestamp:
Sun Jun 22 11:53:02 2008
Author:
laszlop
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • JonoEdit/trunk/Jokosher/Event.py

    r1516 r1519  
    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")