diff options
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r-- | src/Instance.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx index 42d62ac7c..db81a2542 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -40,16 +40,6 @@ Instance::DeleteSong(const char *uri) partition->DeleteSong(uri); } -void -Instance::DatabaseModified() -{ - assert(database != nullptr); - - stats_invalidate(); - partition->DatabaseModified(*database); - idle_add(IDLE_DATABASE); -} - #endif void @@ -69,7 +59,13 @@ Instance::SyncWithPlayer() void Instance::OnDatabaseModified() { - DatabaseModified(); + assert(database != nullptr); + + /* propagate the change to all subsystems */ + + stats_invalidate(); + partition->DatabaseModified(*database); + idle_add(IDLE_DATABASE); } #endif |