[totem] save-file: Videos just under ~/Videos shouldn't be copied
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] save-file: Videos just under ~/Videos shouldn't be copied
- Date: Fri, 18 Jul 2014 17:14:28 +0000 (UTC)
commit 1f4f965ba2cbce049226076e8876fd00cf2f13e0
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 18 13:02:02 2014 +0200
save-file: Videos just under ~/Videos shouldn't be copied
Not just grand-children of ~/Videos.
src/plugins/save-file/totem-save-file.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/save-file/totem-save-file.c b/src/plugins/save-file/totem-save-file.c
index 35f52b4..64e607c 100644
--- a/src/plugins/save-file/totem-save-file.c
+++ b/src/plugins/save-file/totem-save-file.c
@@ -206,6 +206,9 @@ file_has_ancestor (GFile *file,
GFile *cursor;
gboolean retval = FALSE;
+ if (g_file_has_parent (file, ancestor))
+ return TRUE;
+
cursor = g_object_ref (file);
while (1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]