From 83b1bbe24774fa68f9e0086c4aebaa60bf5e4eee Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 23 Jan 2017 13:29:34 +0100 Subject: [PATCH] Use task_set_title --- tasks/task_decompress.c | 2 +- tasks/task_http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/task_decompress.c b/tasks/task_decompress.c index e0efb224fb..aedf1a7380 100644 --- a/tasks/task_decompress.c +++ b/tasks/task_decompress.c @@ -330,7 +330,7 @@ bool task_push_decompress( snprintf(tmp, sizeof(tmp), "%s '%s'", msg_hash_to_str(MSG_EXTRACTING), path_basename(source_file)); - t->title = strdup(tmp); + task_set_title(t, strdup(tmp)); task_queue_ctl(TASK_QUEUE_CTL_PUSH, t); diff --git a/tasks/task_http.c b/tasks/task_http.c index 9413e9718f..9e16273e63 100644 --- a/tasks/task_http.c +++ b/tasks/task_http.c @@ -293,7 +293,7 @@ void *task_push_http_transfer(const char *url, bool mute, const char *type, snprintf(tmp, sizeof(tmp), "%s '%s'", msg_hash_to_str(MSG_DOWNLOADING), path_basename(url)); - t->title = strdup(tmp); + task_set_title(t, tmp); task_queue_ctl(TASK_QUEUE_CTL_PUSH, t);