SampleTrack: fixed non-functional solo and mute buttons
commit6a99bb11af6ac6b605d6569f7c74ab27277c4f00
authorTobias Doerffel <tobias.doerffel@gmail.com>
Fri, 13 Aug 2010 22:18:26 +0000 (14 00:18 +0200)
committerTobias Doerffel <tobias.doerffel@gmail.com>
Fri, 13 Aug 2010 22:26:34 +0000 (14 00:26 +0200)
tree987dff95bd235eaa6d3b3fdad788ef1568f2591d
parent0770bda441f6a3db20fef8cd028d4421faaba91d
SampleTrack: fixed non-functional solo and mute buttons

The SampleTrackView did not explicitely have a SampleTrack model
attached and thus trackView::modelChanged() was not called. This way
SampleTrackView's mute and solo buttons were not connected to the
according models of the SampleTrack model. Fix this by calling
setModel() in SampleTrackView::SampleTrackView() (as done in
constructors of other track types too) and overload the
SampleTrackView::modelChanged() method.

Closes #3043836.
(cherry picked from commit 311bc92bdece8bd969b6278a6d902db3e07e694a)
include/sample_track.h
src/tracks/sample_track.cpp