[gvfs] gdaemonfile: check for the correct cancellable



commit 893ce0bbd6eb53e814d2c239c920cee2e63d5b5e
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Aug 17 23:56:35 2015 +0200

    gdaemonfile: check for the correct cancellable
    
    We were checking for the newly created data cancellable,
    which is wrong. That was causing that mounting encloused
    volumes were not cancellable at all.
    
    Check for the actual GCancellable parameter to fix it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753735

 client/gdaemonfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index cc9edea..41f975c 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -2074,7 +2074,7 @@ g_daemon_file_mount_enclosing_volume (GFile *location,
   
   data = g_new0 (MountData, 1);
   data->callback = callback;
-  if (data->cancellable)
+  if (cancellable)
     data->cancellable = g_object_ref (data->cancellable);
   data->user_data = user_data;
   data->file = g_object_ref (location);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]