From: Andre Noll Date: Tue, 17 Apr 2018 08:05:07 +0000 (+0200) Subject: aft: Honor AUDIO_FILE_REMOVE events. X-Git-Tag: v0.6.2~1^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=0f5a66770a6f43dd2c6bcb69601ec646d53b02f1 aft: Honor AUDIO_FILE_REMOVE events. If the current audio file has been removed, we should invalidate the current_aft_row pointer. --- diff --git a/aft.c b/aft.c index 2f972972..5233fe96 100644 --- a/aft.c +++ b/aft.c @@ -2581,6 +2581,10 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, return ret; make_status_items(); return 1; + } case AUDIO_FILE_REMOVE: { + if (data == current_aft_row) + current_aft_row = NULL; + return 0; } case BLOB_RENAME: case BLOB_REMOVE: