summaryrefslogtreecommitdiff
path: root/src/trg-torrent-add-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-19 07:41:42 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-19 07:41:42 +0000
commit80ce257eb856b6e66cfbeb1274fd08a0e048aa71 (patch)
tree5b1d88fbfcb614de02f452f9a26efff2ed07a0ac /src/trg-torrent-add-dialog.c
parentd453b42def7e0864cbba4489878c351218674dd7 (diff)
issue 84
Diffstat (limited to 'src/trg-torrent-add-dialog.c')
-rw-r--r--src/trg-torrent-add-dialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c
index 54f0684..1b7be0b 100644
--- a/src/trg-torrent-add-dialog.c
+++ b/src/trg-torrent-add-dialog.c
@@ -157,6 +157,7 @@ static gpointer add_files_threadfunc(gpointer data)
files_thread_data->dir);
response = dispatch(files_thread_data->client, request);
+ response->cb_data = files_thread_data->cb_data;
g_idle_add(on_generic_interactive_action, response);
}
@@ -176,7 +177,7 @@ void launch_add_thread(struct add_torrent_threadfunc_args *args)
g_thread_create(add_files_threadfunc, args, FALSE, &error);
if (error) {
- g_error("thread creation error: %s\n", error->message);
+ g_error("thread creation error: %s", error->message);
g_error_free(error);
g_str_slist_free(args->list);
g_free(args);
@@ -248,7 +249,7 @@ trg_torrent_add_response_cb(GtkDialog * dlg, gint res_id, gpointer data)
struct add_torrent_threadfunc_args *args =
g_new(struct add_torrent_threadfunc_args, 1);
args->list = priv->filenames;
- args->cb_data = data;
+ args->cb_data = priv->parent;
args->client = priv->client;
args->dir = g_strdup(dir);
args->priority = priority;