aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Instance.cxx2
-rw-r--r--src/UpdateGlue.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index a033ed82f..4fe399a2d 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -21,6 +21,7 @@
#include "Instance.hxx"
#include "Partition.hxx"
#include "Idle.hxx"
+#include "Stats.hxx"
void
Instance::DeleteSong(const char *uri)
@@ -31,6 +32,7 @@ Instance::DeleteSong(const char *uri)
void
Instance::DatabaseModified()
{
+ stats_invalidate();
partition->DatabaseModified();
idle_add(IDLE_DATABASE);
}
diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx
index 52a5802ce..d2e9402bc 100644
--- a/src/UpdateGlue.cxx
+++ b/src/UpdateGlue.cxx
@@ -29,7 +29,6 @@
#include "GlobalEvents.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
-#include "Stats.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx"
@@ -162,8 +161,6 @@ static void update_finished_event(void)
spawn_update_task(std::move(i));
} else {
progress = UPDATE_PROGRESS_IDLE;
-
- stats_invalidate();
}
}