diff options
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r-- | src/Instance.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx index daad94212..e9a308848 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -21,16 +21,18 @@ #include "Instance.hxx" #include "Partition.hxx" #include "Idle.hxx" +#include "Stats.hxx" void -Instance::DeleteSong(const Song &song) +Instance::DeleteSong(const char *uri) { - partition->DeleteSong(song); + partition->DeleteSong(uri); } void Instance::DatabaseModified() { + stats_invalidate(); partition->DatabaseModified(); idle_add(IDLE_DATABASE); } @@ -46,3 +48,9 @@ Instance::SyncWithPlayer() { partition->SyncWithPlayer(); } + +void +Instance::OnDatabaseModified() +{ + DatabaseModified(); +} |