UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()

This commit is contained in:
Max Kellermann 2014-01-11 00:46:26 +01:00
parent 348d0c944e
commit 3f0415fa24
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}

View File

@ -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();
}
}