[Pkg-owncloud-commits] [owncloud-client] 397/498: Nautilus Shell Integration: Re-Assemble the whole filename after split.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:10 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 cbbc5af8348b6ee6606dd7645727250665069ec7
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Jul 29 11:47:00 2015 +0200

    Nautilus Shell Integration: Re-Assemble the whole filename after split.
    
    The socketapi uses the colon as delimiter, which splits files that contain
    a colon. This patch re-assembles the filename again in case that happened.
---
 shell_integration/nautilus/syncstate.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 15e9699..4203ae3 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -237,8 +237,10 @@ class SyncStateExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.Info
         if action == 'STATUS':
             newState = args[0]
             emblem = Emblems[newState]
+            filename = ':'.join(args[1:])
+
             if emblem:
-                itemStore = self.find_item_for_file(args[1])
+                itemStore = self.find_item_for_file(filename)
                 if itemStore:
                     if( not itemStore['state'] or newState != itemStore['state'] ):
                         item = itemStore['item']

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