[Pkg-owncloud-commits] [owncloud-client] 422/484: NautilusPlugin: Fix detection of top level sync folder.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 87779826290d08f28e019f2072394064f6e900b6
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed Nov 25 13:32:41 2015 +0100
NautilusPlugin: Fix detection of top level sync folder.
---
shell_integration/nautilus/syncstate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 17cb492..01761ec 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -169,7 +169,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider):
if os.path.isdir(filename + "/"):
filename += "/"
# Check if toplevel folder, we need to ignore those as they cannot be shared
- if filename.count("/") < (reg_path.count("/")+2):
+ if filename == reg_path:
topLevelFolder=True
# Only show the menu extension if the file is synced and the sync
# status is ok. Not for ignored files etc.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list