aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Instance.cxx2
-rw-r--r--src/Partition.cxx6
-rw-r--r--src/Partition.hxx6
3 files changed, 13 insertions, 1 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index eeae85b44..daad94212 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -31,7 +31,7 @@ Instance::DeleteSong(const Song &song)
void
Instance::DatabaseModified()
{
- partition->playlist.FullIncrementVersions();
+ partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 3619ff7f0..0ad1692a6 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -22,6 +22,12 @@
#include "Song.hxx"
void
+Partition::DatabaseModified()
+{
+ playlist.FullIncrementVersions();
+}
+
+void
Partition::TagModified()
{
Song *song = pc.LockReadTaggedSong();
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 1d326b147..dbc79b4ba 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -167,6 +167,12 @@ struct Partition {
}
/**
+ * The database has been modified. Propagate the change to
+ * all subsystems.
+ */
+ void DatabaseModified();
+
+ /**
* A tag in the play queue has been modified by the player
* thread. Propagate the change to all subsystems.
*/