NautilusPlugin: Fix behaviour with files with a colon in the name.
authorKlaas Freitag <freitag@owncloud.com>
Wed, 25 Nov 2015 14:09:56 +0000 (15:09 +0100)
committerKlaas Freitag <freitag@owncloud.com>
Wed, 25 Nov 2015 14:11:12 +0000 (15:11 +0100)
shell_integration/nautilus/syncstate.py

index d1d4214012555e6da67cf0de0a5a865609bb53ce..32233629f19658052ac8757e7280e78432f3ad8f 100755 (executable)
@@ -259,8 +259,8 @@ class SyncStateExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.Info
                     if( not itemStore['state'] or newState != itemStore['state'] ):
                         item = itemStore['item']
                         item.add_emblem(emblem)
-                        # print("Setting emblem on " + args[1] + "<>" + emblem + "<>")  # For debug only
-                        socketConnect.nautilusVFSFile_table[args[1]] = {'item': item, 'state':newState}
+                        # print("Setting emblem on " + filename + "<>" + emblem + "<>")  # For debug only
+                        socketConnect.nautilusVFSFile_table[filename] = {'item': item, 'state':newState}
 
         elif action == 'UPDATE_VIEW':
             # Search all items underneath this path and invalidate them