aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index 593198cb9..cfe574e17 100644
--- a/src/update.c
+++ b/src/update.c
@@ -828,6 +828,9 @@ directory_update_init(char *path)
return next_task_id > update_task_id_max ? 1 : next_task_id;
}
spawn_update_task(path);
+
+ idle_add(IDLE_UPDATE);
+
return update_task_id;
}
@@ -852,7 +855,7 @@ static void song_delete_event(void)
sticker_song_delete(delete);
#endif
- deleteASongFromPlaylist(&g_playlist, delete);
+ playlist_delete_song(&g_playlist, delete);
delete = NULL;
notify_signal(&update_notify);
@@ -867,9 +870,11 @@ static void update_finished_event(void)
g_thread_join(update_thr);
+ idle_add(IDLE_UPDATE);
+
if (modified) {
/* send "idle" events */
- playlistVersionChange(&g_playlist);
+ playlist_increment_version_all(&g_playlist);
idle_add(IDLE_DATABASE);
}