[nautilus-sendto] main: Add debug when files are ignored



commit 73d57e0457c738880b7e0d4a364b11f7e50ca011
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 21 17:59:48 2017 +0200

    main: Add debug when files are ignored

 src/nautilus-sendto.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-sendto.c b/src/nautilus-sendto.c
index 9c8d652..ab178f1 100644
--- a/src/nautilus-sendto.c
+++ b/src/nautilus-sendto.c
@@ -484,6 +484,7 @@ nautilus_sendto_init (NautilusSendto *nst)
                        filename = get_target_filename (file);
                        if (filename == NULL) {
                                g_object_unref (file);
+                               g_debug ("Could not get a filename for '%s'", filenames[i]);
                                continue;
                        }
                }
@@ -496,8 +497,10 @@ nautilus_sendto_init (NautilusSendto *nst)
                                          NULL);
                g_object_unref (file);
 
-               if (info == NULL)
+               if (info == NULL) {
+                       g_debug ("Could not get info for '%s'", filenames[i]);
                        continue;
+               }
 
                if (g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_READ) == FALSE) {
                        g_debug ("'%s' is not readable", filenames[i]);


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