summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2013-08-05 21:15:16 +0200
committerNick Schermer <nick@xfce.org>2013-08-05 21:16:02 +0200
commit5b248c502b765fef77c36ea14f3d54d9693126ac (patch)
treecd65de00bba23cf2840410841209e68d891ab0b1
parent412f326eae7871a198693c3b569983691551d215 (diff)
downloadthunar-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.c2
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;
}