timeline: stop scanning the file while filtering

This commit is contained in:
René Stadler 2012-08-27 13:46:14 -07:00 committed by Stefan Sauer
parent 6d6f71049f
commit ad959763af

View file

@ -517,9 +517,9 @@ class TimelineWidget (gtk.DrawingArea):
def update (self, model):
self.clear ()
self.model = model
self.process.abort ()
if model is not None:
self.process.freq_sentinel = LineFrequencySentinel (model)
self.process.dist_sentinel = LevelDistributionSentinel (self.process.freq_sentinel, model)
@ -529,6 +529,7 @@ class TimelineWidget (gtk.DrawingArea):
def clear (self):
self.model = None
self.process.abort ()
self.process.freq_sentinel = None
self.process.dist_sentinel = None