diff options
author | Nick Schermer <nick@xfce.org> | 2013-08-05 21:15:16 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2013-08-05 21:16:02 +0200 |
commit | 5b248c502b765fef77c36ea14f3d54d9693126ac (patch) | |
tree | cd65de00bba23cf2840410841209e68d891ab0b1 | |
parent | 412f326eae7871a198693c3b569983691551d215 (diff) | |
download | thunar-5b248c502b765fef77c36ea14f3d54d9693126ac.tar.gz |
Use the correct function to cancel the task.
g_task_return_error_if_cancelled can only be used in the thread
function, when there is no return value set.
-rw-r--r-- | thunar/thunar-folder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-folder.c b/thunar/thunar-folder.c index 46fac6bb..e42fbe9c 100644 --- a/thunar/thunar-folder.c +++ b/thunar/thunar-folder.c @@ -876,7 +876,7 @@ thunar_folder_reload (ThunarFolder *folder) if (G_UNLIKELY (folder->task != NULL)) { /* stop the task */ - g_task_return_error_if_cancelled (folder->task); + thunar_tasks_cancel (folder->task); g_object_unref (folder->task); folder->task = NULL; } |