From: Andre Noll Date: Mon, 9 Apr 2018 19:05:56 +0000 (+0200) Subject: server: Update status items on file renames. X-Git-Tag: v0.6.2~1^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=bb1996d4ef04bf33e735f2ce49e9edeeb5a66e80;p=paraslash.git 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. --- 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;