[Pkg-owncloud-commits] [owncloud-client] 423/484: NautilusPlugin: Fix detection of the OK status

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:16 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 a708f8d8adbdbf4f6fa715f5c5113ce891cfc075
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Nov 25 14:59:37 2015 +0100

    NautilusPlugin: Fix detection of the OK status
    
    Consider OK+SHW also as ok, and enable the ownCloud actions.
---
 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 01761ec..d1d4214 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -174,7 +174,7 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider):
             # Only show the menu extension if the file is synced and the sync
             # status is ok. Not for ignored files etc.
             # ignore top level folders
-            if filename.startswith(reg_path) and topLevelFolder == False and socketConnect.nautilusVFSFile_table[filename]['state'] == 'OK':
+            if filename.startswith(reg_path) and topLevelFolder == False and socketConnect.nautilusVFSFile_table[filename]['state'].startswith('OK'):
                 syncedFile = True
 
         # If it is neither in a synced folder or is a directory

-- 
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