Fix Track Moving not Updating PatternClipView (#8155)
This bug was noticed when testing out #7559, but the PR had been open for over a year, so it was decided to merge it and fix it in this one. Basically, when adding or removing a track, the TrackContainer sends out signals such as trackAdded or trackRemoved which PatternClipView uses to know when to update. However, it does not send out a signal when a track has been moved. This is because for some reason, it's done by the GUI TrackContainerView instead of the core TrackContainer. This PR changes that by moving the core code to the core where it probably belongs, adding an appropriate trackMoved signal to TrackContainer, and connecting that to PatternClipView to update properly. --------- Co-authored-by: Fawn <rubiefawn@gmail.com>
This commit is contained in:
@@ -68,6 +68,7 @@ public:
|
||||
|
||||
void addTrack( Track * _track );
|
||||
void removeTrack( Track * _track );
|
||||
void moveTrack(Track* track, int indexTo);
|
||||
|
||||
virtual void updateAfterTrackAdd();
|
||||
|
||||
@@ -100,6 +101,7 @@ public:
|
||||
signals:
|
||||
void trackAdded( lmms::Track * _track );
|
||||
void trackRemoved();
|
||||
void trackMoved();
|
||||
|
||||
protected:
|
||||
static AutomatedValueMap automatedValuesFromTracks(const TrackList &tracks, TimePos timeStart, int clipNum = -1);
|
||||
|
||||
Reference in New Issue
Block a user