summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/playlist.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc
index 216244bd0..72745f220 100644
--- a/src/lib/playlist.cc
+++ b/src/lib/playlist.cc
@@ -103,8 +103,6 @@ Playlist::setup ()
_content_connections.push_back ((*i)->Changed.connect (bind (&Playlist::content_changed, this, _1, _2)));
}
-
- Changed ();
}
/** @return Length of our audio */
@@ -328,6 +326,8 @@ Playlist::set_from_xml (shared_ptr<const cxml::Node> node)
}
_loop = node->number_child<int> ("Loop");
+
+ setup ();
}
void
@@ -345,6 +345,7 @@ Playlist::add (shared_ptr<Content> c)
{
_content.push_back (c);
setup ();
+ Changed ();
}
void
@@ -356,6 +357,7 @@ Playlist::remove (shared_ptr<Content> c)
}
setup ();
+ Changed ();
}
void
@@ -372,6 +374,7 @@ Playlist::move_earlier (shared_ptr<Content> c)
swap (*i, *j);
setup ();
+ Changed ();
}
void
@@ -391,6 +394,7 @@ Playlist::move_later (shared_ptr<Content> c)
swap (*i, *j);
setup ();
+ Changed ();
}
void