From bb1996d4ef04bf33e735f2ce49e9edeeb5a66e80 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 9 Apr 2018 21:05:56 +0200 Subject: [PATCH] server: Update status items on file renames. The audio file table currently ignores rename events. This has the effect that the status items, hence the display of para_gui, is not updated when the current file has been renamed. Fix this oversight. --- aft.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aft.c b/aft.c index 8969e7ac..2f972972 100644 --- a/aft.c +++ b/aft.c @@ -2563,6 +2563,16 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, status_item_ls_data.afsi.last_played = old_last_played; make_status_items(); return 1; + } case AUDIO_FILE_RENAME: { + char *path; + if (data != current_aft_row) + return 0; + ret = get_audio_file_path_of_row(current_aft_row, &path); + if (ret < 0) + return ret; + status_item_ls_data.path = path; + make_status_items(); + return 1; } case AFHI_CHANGE: { if (data != current_aft_row) return 0; -- 2.39.2