From a1839a88ab0cffdf04737dae783c21f27f65d491 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 30 Jan 2016 20:39:12 +0000 Subject: Add a PlaylistOrderChanged signal and emit it when the playlist is sorted. Do playlist sorting when content position / length etc. changes. Handle sorts better when comparing content at the same position. --- src/lib/playlist.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/playlist.h') diff --git a/src/lib/playlist.h b/src/lib/playlist.h index 0baf667fc..3af17bb6c 100644 --- a/src/lib/playlist.h +++ b/src/lib/playlist.h @@ -70,8 +70,9 @@ public: void repeat (ContentList, int); - /** Emitted when content has been added to or removed from the playlist */ + /** Emitted when content has been added to or removed from the playlist; implies OrderChanged */ mutable boost::signals2::signal Changed; + mutable boost::signals2::signal OrderChanged; /** Emitted when something about a piece of our content has changed; * these emissions include when the position of the content changes. * Third parameter is true if signals are currently being emitted frequently. -- cgit v1.2.3