timeline: small cleanup

This commit is contained in:
René Stadler 2012-08-27 13:45:57 -07:00 committed by Stefan Sauer
parent fb9d9ca4cf
commit 6d6f71049f

View file

@ -519,12 +519,11 @@ class TimelineWidget (gtk.DrawingArea):
self.model = model
width = self.get_allocation ()[2]
self.process.abort ()
if model:
if model is not None:
self.process.freq_sentinel = LineFrequencySentinel (model)
self.process.dist_sentinel = LevelDistributionSentinel (self.process.freq_sentinel, model)
width = self.get_allocation ()[2]
self.process.freq_sentinel.run_for (width)
self.process.run ()