Fix changing playlist (Track is responsible for signal emission)

This commit is contained in:
Robin Gareus 2017-09-23 02:31:00 +02:00
parent c724f3f82c
commit 94cce9e06e
3 changed files with 3 additions and 5 deletions

View file

@ -110,8 +110,6 @@ class LIBARDOUR_API DiskIOProcessor : public Processor
virtual void playlist_modified () {}
virtual int use_playlist (DataType, boost::shared_ptr<Playlist>);
PBD::Signal1<void,DataType> PlaylistChanged;
virtual void adjust_buffering() = 0;
protected:

View file

@ -362,9 +362,6 @@ DiskIOProcessor::use_playlist (DataType dt, boost::shared_ptr<Playlist> playlist
DEBUG_TRACE (DEBUG::DiskIO, string_compose ("%1 now using playlist %1 (%2)\n", name(), playlist->name(), playlist->id()));
PlaylistChanged (dt); /* EMIT SIGNAL */
_session.set_dirty ();
return 0;
}

View file

@ -827,6 +827,9 @@ Track::use_playlist (DataType dt, boost::shared_ptr<Playlist> p)
_playlists[dt] = p;
}
_session.set_dirty ();
PlaylistChanged (); /* EMIT SIGNAL */
return ret;
}