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.
This commit is contained in:
Klaas Freitag 2015-07-29 11:47:00 +02:00
parent b012fae144
commit cbbc5af834
1 changed files with 3 additions and 1 deletions

View File

@ -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']