From 5273ef18fa909e5236fde2e1d320e0e270bc3f22 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 21 Oct 2007 14:24:19 +0200 Subject: [PATCH] aft: Add missing add event. --- aft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aft.c b/aft.c index 46d67292..3666a2eb 100644 --- a/aft.c +++ b/aft.c @@ -1500,8 +1500,8 @@ out: return 0; result->data = msg.buf; result->size = msg.size; + afs_event(AUDIO_FILE_ADD, &msg, aft_row); return 1; - // mood_update_audio_file(aft_row, NULL); } struct private_add_data { @@ -1965,7 +1965,7 @@ int com_afs_rm(int fd, int argc, char * const * const argv) if (ret > 0) { send_buffer(fd, (char *)result.data); free(result.data); - } else + } else if (ret < 0) send_va_buffer(fd, "%s\n", PARA_STRERROR(-ret)); return ret; } -- 2.39.5