[totem/gnome-3-12] 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/gnome-3-12] save-file: Videos just under ~/Videos shouldn't be copied
- Date: Mon, 18 Aug 2014 11:08:36 +0000 (UTC)
commit 7e8d6d87d47c26867e184ca53ae633b5a7f09574
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 6fb6f9a..03a0fc8 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]